Sha256: 800517fc958c4ffca901d777f4473ace51b9ba0d1e93894805a3af2d228e631e

Contents?: true

Size: 1.02 KB

Versions: 4

Compression:

Stored size: 1.02 KB

Contents

Feature: label
  As a CSL cite processor hacker
  I want the test label_EmptyLabelVanish to pass

  @citation @label
  Scenario: Empty Label Vanish
    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>
      <locale>
        <terms>
          <term name="page"></term>
        </terms>
      </locale>
      <citation>
        <layout>
          <text value="[start]"/>
          <group delimiter=" : " prefix="(" suffix=")">
            <label variable="page"/>
            <text variable="page-first"/>
          </group>
          <text value="[end]"/>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"id":"ITEM-1","page":"22-45","title":"His Anonymous Life","type":"book"}]
    """
    When I cite all items
    Then the result should be:
    """
    [start](22)[end]
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/label/EmptyLabelVanish.feature
citeproc-1.0.6 features/label/EmptyLabelVanish.feature
citeproc-1.0.5 features/label/EmptyLabelVanish.feature
citeproc-1.0.4 features/label/EmptyLabelVanish.feature