Sha256: 0777b7502cc84b449f7d999ba644db8c070e4320542e8ae916c9ed8ee59b346e

Contents?: true

Size: 1.37 KB

Versions: 4

Compression:

Stored size: 1.37 KB

Contents

Feature: magic
  As a CSL cite processor hacker
  I want the test magic_AllowRepeatDateRenderings to pass

  @citation @magic @citation-items
  Scenario: Allow Repeat Date Renderings
    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 delimiter="; ">
          <group prefix="(" suffix=").">
            <date variable="issued">
              <date-part name="year" />
            </date>
            <choose>
              <if match="none" type="book chapter article-journal">
                <date variable="issued">
                  <date-part name="month" prefix=", " />
                  <date-part name="day" prefix=" " />
                </date>
              </if>
            </choose>
          </group>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"id":"ITEM-1","issued":{"date-parts":[[2006,1,20]]},"type":"book"},{"id":"ITEM-2","issued":{"date-parts":[[2007,2,15]]},"type":"article-newspaper"}]
    """
    When I cite the following items:
    """
    [[{"id":"ITEM-1"}],[{"id":"ITEM-2"}]]
    """
    Then the results should be:
      | (2006).              |
      | (2007, February 15). |

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/magic/AllowRepeatDateRenderings.feature
citeproc-1.0.6 features/magic/AllowRepeatDateRenderings.feature
citeproc-1.0.5 features/magic/AllowRepeatDateRenderings.feature
citeproc-1.0.4 features/magic/AllowRepeatDateRenderings.feature