Sha256: fde2c53f25b794d5258cc825555d0ad9a14c02cee727e5161460cf2fa0ecf60c

Contents?: true

Size: 1.26 KB

Versions: 16

Compression:

Stored size: 1.26 KB

Contents

Feature: Sorting
  As a hacker of cite processors
  I want to sort citation items
  According to the rules of a CSL style

  Scenario: Name sorting
    Given the following sort keys:
      """
      <sort>
        <key variable="author"/>
      </sort>
      """
    When I sort the following items:
      | author    |
      | Edelweis  |
      | ANZ-Group |
      | Aardvaark |
    Then the order should be:
      | ID-2      |
      | ID-1      |
      | ID-0      |

  Scenario: Name sorting macros
    Given the following sort keys:
      """
      <sort>
        <key macro="author"/>
      </sort>
      """
    And the following macro:
      """
      <macro name="author">
        <names variable="author">
          <name name-as-sort-order="all" and="symbol" sort-separator=", "
                initialize-with="." delimiter-precedes-last="never" delimiter=", "/>
          <label form="short" prefix=" (" suffix=".)" text-case="capitalize-first"/>
          <substitute>
            <names variable="editor"/>
            <text value="Anon"/>
          </substitute>
        </names>
      </macro>
      """
    When I sort the following items:
      | author    |
      | ABC       |
      | Aaa       |
    Then the order should be:
      | ID-1      |
      | ID-0      |

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
citeproc-ruby-1.1.8 features/sort.feature
citeproc-ruby-1.1.7 features/sort.feature
citeproc-ruby-1.1.6 features/sort.feature
citeproc-ruby-1.1.5 features/sort.feature
citeproc-ruby-1.1.4 features/sort.feature
citeproc-ruby-1.1.3 features/sort.feature
citeproc-ruby-1.1.2 features/sort.feature
citeproc-ruby-1.1.1 features/sort.feature
citeproc-ruby-1.1.0 features/sort.feature
citeproc-ruby-1.0.6 features/sort.feature
citeproc-ruby-1.0.5 features/sort.feature
citeproc-ruby-1.0.4 features/sort.feature
citeproc-ruby-1.0.3 features/sort.feature
citeproc-ruby-1.0.2 features/sort.feature
citeproc-ruby-1.0.1 features/sort.feature
citeproc-ruby-1.0.0 features/sort.feature