Sha256: f9345d1db5c60951996e6a6a9de7bf3294a5b0f151315f95c4ec9253e65bab8b

Contents?: true

Size: 915 Bytes

Versions: 4

Compression:

Stored size: 915 Bytes

Contents

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

  @citation @condition
  Scenario: Numeral With Text Is Numeric
    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="TRUE"/>
            </if>
            <else>
              <text value="FALSE"/>
            </else>
          </choose>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"edition":"5th","id":"ITEM-1","type":"book"}]
    """
    When I cite all items
    Then the result should be:
    """
    TRUE
    """

Version data entries

4 entries across 4 versions & 1 rubygems

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