Sha256: f3b8aca2fd20942075b487c240254795a2ea45d321244ca9040d2a57d3c90fa0

Contents?: true

Size: 1.27 KB

Versions: 4

Compression:

Stored size: 1.27 KB

Contents

Feature: name
  As a CSL cite processor hacker
  I want the test name_SubstituteOnMacroGroupSpanFail to pass

  @citation @name
  Scenario: Substitute On Macro Group Span 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>
      <macro name="bogus">
        <text variable="volume" />
      </macro>
      <citation>
        <layout>
          <names variable="translator">
            <name />
            <substitute>
              <text macro="bogus" />
              <names variable="author" />
              <group>
                <text variable="title" />
                <text prefix=", " value="... this should NOT appear" />
              </group>
            </substitute>
          </names>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"author":[{"family":"Doe","given":"John","static-ordering":false}],"edition":"5","id":"item-1","issued":{"date-parts":[["2000"]]},"title":"His Anonymous Life","type":"book","volume":"boo"}]
    """
    When I cite all items
    Then the result should be:
    """
    boo
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/name/SubstituteOnMacroGroupSpanFail.feature
citeproc-1.0.6 features/name/SubstituteOnMacroGroupSpanFail.feature
citeproc-1.0.5 features/name/SubstituteOnMacroGroupSpanFail.feature
citeproc-1.0.4 features/name/SubstituteOnMacroGroupSpanFail.feature