Sha256: 2a19bb4cd1f40c603b6379cefc9c8994a48bc556cbc9b48051dee2f9b1f77efa

Contents?: true

Size: 1.69 KB

Versions: 4

Compression:

Stored size: 1.69 KB

Contents

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

  @citation @date
  Scenario: Localized Date Formats-mn-MN
    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="year"/>
          <date-part name="month" form="numeric-leading-zeros" prefix="."/>
          <date-part name="day" form="numeric-leading-zeros" prefix="."/>
        </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
    1998.04.10
    1998.04
    1998
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/date/LocalizedDateFormats-mn-MN.feature
citeproc-1.0.6 features/date/LocalizedDateFormats-mn-MN.feature
citeproc-1.0.5 features/date/LocalizedDateFormats-mn-MN.feature
citeproc-1.0.4 features/date/LocalizedDateFormats-mn-MN.feature