Sha256: f51d0e26416ac2ac196594eacdf08f43e738e5ec912d4952e6e1c27475550f6c

Contents?: true

Size: 1.85 KB

Versions: 4

Compression:

Stored size: 1.85 KB

Contents

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

  @citation @date @citations
  Scenario: Year Suffix Implicit 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/YearSuffixImplicitWithNoDate.feature
citeproc-1.0.6 features/date/YearSuffixImplicitWithNoDate.feature
citeproc-1.0.5 features/date/YearSuffixImplicitWithNoDate.feature
citeproc-1.0.4 features/date/YearSuffixImplicitWithNoDate.feature