Sha256: b8bcee9ea07f68bb0aaeb6b0b53f146ae10070a6710a235769c493c009d98b17

Contents?: true

Size: 1.07 KB

Versions: 4

Compression:

Stored size: 1.07 KB

Contents

Feature: locale
  As a CSL cite processor hacker
  I want the test locale_OverloadWithEmptyString to pass

  @citation @locale
  Scenario: Overload With Empty String
    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="month-01">HIGHLY VISIBLE TERM</term>
        </terms>
      </locale>
      <locale xml:lang="en">
        <terms>
          <term name="month-01"></term>
        </terms>
      </locale>
      <citation>
        <layout>
          <text variable="title" suffix=": "/>
          <text value="("/>
          <text term="month-01"/>
          <text value=")"/>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"id":"ITEM-1","title":"Sample Title","type":"book"}]
    """
    When I cite all items
    Then the result should be:
    """
    Sample Title: ()
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/locale/OverloadWithEmptyString.feature
citeproc-1.0.6 features/locale/OverloadWithEmptyString.feature
citeproc-1.0.5 features/locale/OverloadWithEmptyString.feature
citeproc-1.0.4 features/locale/OverloadWithEmptyString.feature