Sha256: c3bcad537ccf1bd1d61880da322e5bd01d724e6b4c5aeb71e9a5aec1d740f765

Contents?: true

Size: 979 Bytes

Versions: 4

Compression:

Stored size: 979 Bytes

Contents

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

  @citation @condition
  Scenario: Variable 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 delimiter="&#x0A;">
          <choose>
            <if variable="title edition" match="any">
              <text value="TRUE"/>
            </if>
            <else>
              <text value="FALSE"/>
            </else>
          </choose>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"id":"ITEM-1","title":"His Book","type":"book"},{"id":"ITEM-2","type":"book","volume":"101"}]
    """
    When I cite all items
    Then the result should be:
    """
    TRUE
    FALSE
    """

Version data entries

4 entries across 4 versions & 1 rubygems

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