Sha256: f1060a792018300f69e1e7e9ba5fd907178b02ed34dbab3579ce50ac5d612361

Contents?: true

Size: 895 Bytes

Versions: 4

Compression:

Stored size: 895 Bytes

Contents

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

  @citation @condition
  Scenario: Numeral 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":"5","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/NumeralIsNumeric.feature
citeproc-1.0.6 features/condition/NumeralIsNumeric.feature
citeproc-1.0.5 features/condition/NumeralIsNumeric.feature
citeproc-1.0.4 features/condition/NumeralIsNumeric.feature