Sha256: 1bc28db37f51cb9f10e8454689ed31408c6e3a3ad0832a80a90315a90924acb1

Contents?: true

Size: 956 Bytes

Versions: 4

Compression:

Stored size: 956 Bytes

Contents

Feature: bugreports
  As a CSL cite processor hacker
  I want the test bugreports_EmptyIfMatchNoneFail to pass

  @citation @bugreports
  Scenario: Empty If Match None Fail
    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 match="none" variable="title"></if>
            <else-if match="any" type="thesis speech">
              <text variable="genre" />
            </else-if>
          </choose>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"genre":"PhD. diss.","id":"ITEM-1","title":"His Anonymous Life","type":"thesis"}]
    """
    When I cite all items
    Then the result should be:
    """
    PhD. diss.
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/bugreports/EmptyIfMatchNoneFail.feature
citeproc-1.0.6 features/bugreports/EmptyIfMatchNoneFail.feature
citeproc-1.0.5 features/bugreports/EmptyIfMatchNoneFail.feature
citeproc-1.0.4 features/bugreports/EmptyIfMatchNoneFail.feature