Sha256: d69764b9c97b291a354c6d814e422bddc129d39d89f75c259b315af2820a7c57

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

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

  @citation @locale
  Scenario: Empty Plus Override Term
    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 xml:lang="en">
        <terms>
          <term name="interviewer">weird term</term>
        </terms>
      </locale>
      <locale>
        <terms>
          <term name="interviewer"></term>
        </terms>
      </locale>
      <citation>
        <layout>
          <text variable="title" suffix=": "/>
          <text term="interviewer" prefix="(" suffix=")"/>
        </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: (weird term)
    """

Version data entries

4 entries across 4 versions & 1 rubygems

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