Sha256: a718e74fd125ba12362a7344844077eb4c0b403b28a0482a3ab27ed1dadae6ea

Contents?: true

Size: 1.27 KB

Versions: 4

Compression:

Stored size: 1.27 KB

Contents

Feature: date
  As a CSL cite processor hacker
  I want the test date_SortEmptyDatesCitation to pass

  @citation @date
  Scenario: Sort Empty Dates Citation
    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>
        <sort>
          <key variable="issued"/>
          <key variable="title"/>
        </sort>
        <layout delimiter="; " prefix="" suffix=".">
          <group delimiter=" ">
            <text variable="title" />
            <date variable="issued">
              <date-part name="year" />
            </date>
          </group>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"id":"ITEM-1","title":"BookA","type":"book"},{"id":"ITEM-2","issued":{"date-parts":[[2000]]},"title":"BookB","type":"book"},{"id":"ITEM-3","title":"BookC","type":"book"},{"id":"ITEM-4","issued":{"date-parts":[[1999]]},"title":"BookD","type":"book"},{"id":"ITEM-5","title":"BookE","type":"book"}]
    """
    When I cite all items
    Then the result should be:
    """
    BookD 1999; BookB 2000; BookA; BookC; BookE.
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/date/SortEmptyDatesCitation.feature
citeproc-1.0.6 features/date/SortEmptyDatesCitation.feature
citeproc-1.0.5 features/date/SortEmptyDatesCitation.feature
citeproc-1.0.4 features/date/SortEmptyDatesCitation.feature