Sha256: 7e9c568073128e4973890a059973706c12d059c69408222ee47b2f6b234bd884

Contents?: true

Size: 1.08 KB

Versions: 4

Compression:

Stored size: 1.08 KB

Contents

Feature: position
  As a CSL cite processor hacker
  I want the test position_TrueInCitation to pass

  @citation @position
  Scenario: True In Citation
    Given the following style:
    """
    <style 
          xmlns="http://purl.org/net/xbiblio/csl"
          class="note"
          version="1.0">
      <info>
        <id />
        <title />
        <updated>2009-08-10T04:49:00+09:00</updated>
      </info>
      <citation>
        <layout>
          <choose>
            <if position="first ibid ibid-with-locator" match="none">
              <text variable="title"/>
            </if>
            <else>
              <text value="I am weak, and I have failed."/>
            </else>
          </choose>
        </layout>
      </citation>
      <bibliography>
        <layout>
          <text variable="title"/>
        </layout>
      </bibliography>
    </style>
    """
    And the following input:
    """
    [{"id":"ITEM-1","title":"His Anonymous Life","type":"book"}]
    """
    When I cite all items
    Then the result should be:
    """
    I am weak, and I have failed.
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/position/TrueInCitation.feature
citeproc-1.0.6 features/position/TrueInCitation.feature
citeproc-1.0.5 features/position/TrueInCitation.feature
citeproc-1.0.4 features/position/TrueInCitation.feature