Sha256: 9b0f7a2a3961858f59bb91ab8276e4451bb9fabc9eb26d73e6c062349b2a30c5

Contents?: true

Size: 1006 Bytes

Versions: 4

Compression:

Stored size: 1006 Bytes

Contents

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

  @citation @condition
  Scenario: Empty Short Title 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 variable="title-short">
              <text value="Sees title-short (wrong)"/>
            </if>
            <else>
              <text value="Does not see title-short (correct)"/>
            </else>
          </choose>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"id":"ITEM-1","title":"His Anonymous Life","type":"legal_case"}]
    """
    When I cite all items
    Then the result should be:
    """
    Does not see title-short (correct)
    """

Version data entries

4 entries across 4 versions & 1 rubygems

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