Sha256: 2ad7def1ccff0219fd6f68bbf89a6503bebe59059fc10386cc3a4cd364258814

Contents?: true

Size: 1.83 KB

Versions: 4

Compression:

Stored size: 1.83 KB

Contents

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

  @citation @date @citations
  Scenario: Year Suffix With No Date
    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 disambiguate-add-year-suffix="true">
        <layout delimiter="; " prefix="(" suffix=")">
          <group delimiter=" ">
            <names variable="author">
              <name/>
            </names>
            <group>
              <choose>
                <if variable="issued">
                  <date variable="issued" form="text" date-parts="year"/>
                  <text variable="year-suffix"/>
                </if>
                <else>
                  <text term="no date" form="short"/>
                  <text variable="year-suffix" prefix="-"/>
                </else>
              </choose>
            </group>
          </group>
          <group delimiter=" " prefix=" [" suffix="]">
            <text term="accessed" suffix=": " text-case="capitalize-first"/>
            <date variable="accessed" form="text" date-parts="year-month-day"/>
          </group>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"accessed":{"date-parts":[["1965","6","1"]]},"author":[{"family":"Doe","given":"John"}],"id":"ITEM-1","type":"book"},{"accessed":{"date-parts":[["2065","6","1"]]},"author":[{"family":"Doe","given":"John"}],"id":"ITEM-2","type":"book"}]
    """
    And I have a citations input
    When I cite all items
    Then the result should be:
    """
    >>[0] (John Doe n.d.-a [Accessed: June 1, 1965]; John Doe n.d.-b [Accessed: June 1, 2065])
    """

Version data entries

4 entries across 4 versions & 1 rubygems

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