Sha256: 3fd2474b5852e187a87b6c3f7aca6ee8233a2c7ba5ba92119541d575b3d5e9ae

Contents?: true

Size: 984 Bytes

Versions: 4

Compression:

Stored size: 984 Bytes

Contents

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

  @citation @condition
  Scenario: Empty Is Numeric False
    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 is-numeric="edition">
              <text value="empty edition is numeric"/>
            </if>
            <else>
              <text value="empty edition is not numeric"/>
            </else>
          </choose>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"id":"ITEM-1","title":"His Anonymous Life","type":"book"}]
    """
    When I cite all items
    Then the result should be:
    """
    empty edition is not numeric
    """

Version data entries

4 entries across 4 versions & 1 rubygems

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