Sha256: 7c05b1a70249122aa11e153c9df1fb575a4b413f0843b614cf509a7cb34593a0

Contents?: true

Size: 955 Bytes

Versions: 4

Compression:

Stored size: 955 Bytes

Contents

Feature: condition
  As a CSL cite processor hacker
  I want the test condition_FirstNullAny to pass

  @citation @condition
  Scenario: First Null Any
    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>
          <text value="Try: "/>
          <choose>
            <if match="any" variable="publisher-place publisher">
              <text variable="publisher"/>
            </if>
          </choose>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"author":[{"family":"Doe","given":"John"}],"id":"ITEM-1","publisher":"Okay Publishers","type":"book"}]
    """
    When I cite all items
    Then the result should be:
    """
    Try: Okay Publishers
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/condition/FirstNullAny.feature
citeproc-1.0.6 features/condition/FirstNullAny.feature
citeproc-1.0.5 features/condition/FirstNullAny.feature
citeproc-1.0.4 features/condition/FirstNullAny.feature