Sha256: 3a15692182a90f6a5492cac873cb14735f8ab7291177f8067ccd503028ccb8a8

Contents?: true

Size: 1.78 KB

Versions: 4

Compression:

Stored size: 1.78 KB

Contents

Feature: api
  As a CSL cite processor hacker
  I want the test api_UpdateItemsReshuffle to pass

  @citation @api @bibentries
  Scenario: Update Items Reshuffle
    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="; " suffix=".">
          <group delimiter=" ">
            <names variable="author">
              <name form="short" />
            </names>
            <date variable="issued">
              <date-part name="year" />
            </date>
          </group>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"author":[{"family":"Doe","given":"John","static-ordering":false}],"id":"ITEM-1","issued":{"date-parts":[[1960]]},"title":"Book A","type":"book"},{"author":[{"family":"Roe","given":"Jane","static-ordering":false}],"id":"ITEM-2","issued":{"date-parts":[[1970]]},"title":"Book B","type":"book"},{"author":[{"family":"Smith","given":"John","static-ordering":false}],"id":"ITEM-3","issued":{"date-parts":[[1980]]},"title":"Book C","type":"book"},{"author":[{"family":"Brown","given":"Robert","static-ordering":false}],"id":"ITEM-4","issued":{"date-parts":[[1990]]},"title":"Book D","type":"book"},{"author":[{"family":"Ichi","given":"Taro","static-ordering":false}],"id":"ITEM-5","issued":{"date-parts":[[2000]]},"title":"Book E","type":"book"}]
    """
    And the following items have been cited:
    """
    ["ITEM-1","ITEM-4","ITEM-5","ITEM-2","ITEM-3"]
    """
    When I cite all items
    Then the result should be:
    """
    Doe 1960; Brown 1990; Ichi 2000; Roe 1970; Smith 1980.
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/api/UpdateItemsReshuffle.feature
citeproc-1.0.6 features/api/UpdateItemsReshuffle.feature
citeproc-1.0.5 features/api/UpdateItemsReshuffle.feature
citeproc-1.0.4 features/api/UpdateItemsReshuffle.feature