Sha256: 02ed40307d08f35639a036ebd0e7349b5251c21be1e646b21c57f3aa71e999b7

Contents?: true

Size: 1.65 KB

Versions: 4

Compression:

Stored size: 1.65 KB

Contents

Feature: date
  As a CSL cite processor hacker
  I want the test date_LocalizedDateFormats-ar-AR to pass

  @citation @date
  Scenario: Localized Date Formats-ar-AR
    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>
      <locale>
        <date form="text">
          <date-part name="day" suffix=" "/>
          <date-part name="month" suffix=", "/>
          <date-part name="year"/>
        </date>
        <date form="numeric">
          <date-part name="day" suffix="/"/>
          <date-part name="month" form="numeric" suffix="/"/>
          <date-part name="year"/>
        </date>
      </locale>
      <citation>
        <layout>
          <group delimiter="&#x0A;">
            <date variable="issued" form="text" date-parts="year-month-day"/>
            <date variable="issued" form="text" date-parts="year-month"/>
            <date variable="issued" form="text" date-parts="year"/>
            <date variable="issued" form="numeric" date-parts="year-month-day"/>
            <date variable="issued" form="numeric" date-parts="year-month"/>
            <date variable="issued" form="numeric" date-parts="year"/>
          </group>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"id":"ITEM-1","issued":{"date-parts":[[1998,4,10]]},"title":"BookA"}]
    """
    When I cite all items
    Then the result should be:
    """
    10 April, 1998
    April, 1998
    1998
    10/4/1998
    4/1998
    1998
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/date/LocalizedDateFormats-ar-AR.feature
citeproc-1.0.6 features/date/LocalizedDateFormats-ar-AR.feature
citeproc-1.0.5 features/date/LocalizedDateFormats-ar-AR.feature
citeproc-1.0.4 features/date/LocalizedDateFormats-ar-AR.feature