Sha256: 1bffc9bb33c0173c38217152248b5f14848ec7a98b2d9f7531056fb35b4e5ed8

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 KB

Contents

Feature: Parse CSL localized terms
  As a hacker of CSL styles
  I want to be able to parse CSL localized terms

  Scenario: A few standard terms
    When I parse the CSL string
      """
      <terms>
        <term name="accessed">accessed</term>
        <term name="and">and</term>
        <term name="and others">and others</term>
        <term name="anonymous">anonymous</term>
        <term name="anonymous" form="short">anon.</term>
        <term name="circa">circa</term>
        <term name="circa" form="short">c.</term>
        <term name="cited">cited</term>
        <term name="edition">
          <single>edition</single>
          <multiple>editions</multiple>
        </term>
      </terms>
      """
    Then the nodename should be "terms"
    And the node should have 9 terms
    And the term number 1 should have the attribute "name" set to "accessed"
    And the term number 2 should be a textnode
    And the term number 9 should have the attribute "name" set to "edition"
    And the term number 9 should not be a textnode

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
csl-1.4.5 features/parser/terms.feature
csl-1.4.4 features/parser/terms.feature
csl-1.4.3 features/parser/terms.feature
csl-1.4.2 features/parser/terms.feature
csl-1.4.1 features/parser/terms.feature
csl-1.4.0 features/parser/terms.feature