Sha256: b94ea8c8ac09e7267dcaa12b920e06bf72ac3bb82fb0db4c6934d82db2a051a7

Contents?: true

Size: 1.43 KB

Versions: 4

Compression:

Stored size: 1.43 KB

Contents

Feature: integration
  As a CSL cite processor hacker
  I want the test integration_SubsequentWhenInterveningFootnote to pass

  @citation @integration @citations
  Scenario: Subsequent When Intervening Footnote
    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 delimiter="; " prefix="(" suffix=")">
          <choose>
            <if position="first">
              <names variable="author">
                <name form="short"/>
              </names>
              <group prefix=" ">
                <label variable="locator" form="short" suffix=" "/>
                <text variable="locator"/>
              </group>
            </if>
            <else-if position="subsequent">
     		    <text value="I am subsequent"/>
    		</else-if>
            <else>
                <text value="I am ibid or ibid-with-locator"/>
            </else>
          </choose>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"author":[{"family":"Doe","given":"John","static-ordering":false}],"id":"ITEM-1","type":"book"}]
    """
    And I have a citations input
    When I cite all items
    Then the result should be:
    """
    ..[0] (Doe)
    >>[1] (I am subsequent)
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/integration/SubsequentWhenInterveningFootnote.feature
citeproc-1.0.6 features/integration/SubsequentWhenInterveningFootnote.feature
citeproc-1.0.5 features/integration/SubsequentWhenInterveningFootnote.feature
citeproc-1.0.4 features/integration/SubsequentWhenInterveningFootnote.feature