Sha256: 5e4cb7dc84f3c723ed5a1e1c4ccdae24b28d6e332a99efc13c74cbfed95edf81

Contents?: true

Size: 1.09 KB

Versions: 4

Compression:

Stored size: 1.09 KB

Contents

Feature: sort
  As a CSL cite processor hacker
  I want the test sort_CitationUnsorted to pass

  @citation @sort @citations
  Scenario: Citation Unsorted
    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="author">
        <names variable="author">
          <name form="short" />
        </names>
      </macro>
      <citation>
        <sort>
          <key macro="author" />
        </sort>
        <layout delimiter="; ">
          <text macro="author" />
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"author":[{"family":"Roe","given":"Jane","static-ordering":false}],"id":"ITEM-1","type":"book"},{"author":[{"family":"Doe","given":"John","static-ordering":false}],"id":"ITEM-2","type":"book"}]
    """
    And I have a citations input
    When I cite all items
    Then the result should be:
    """
    >>[0] Roe; Doe
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/sort/CitationUnsorted.feature
citeproc-1.0.6 features/sort/CitationUnsorted.feature
citeproc-1.0.5 features/sort/CitationUnsorted.feature
citeproc-1.0.4 features/sort/CitationUnsorted.feature