Sha256: 68325f98ae0f01e5ad76b0c91b2317e667c6cb4968bfec2d9f6acaf4132ec9cb

Contents?: true

Size: 1.72 KB

Versions: 4

Compression:

Stored size: 1.72 KB

Contents

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

  @citation @date
  Scenario: Localized Date Formats-ru-RU
    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" suffix=" &#1075;."/>
        </date>
        <date form="numeric">
          <date-part name="day" form="numeric-leading-zeros" suffix="."/>
          <date-part name="month" form="numeric-leading-zeros" 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.04.1998
    04.1998
    1998
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/date/LocalizedDateFormats-ru-RU.feature
citeproc-1.0.6 features/date/LocalizedDateFormats-ru-RU.feature
citeproc-1.0.5 features/date/LocalizedDateFormats-ru-RU.feature
citeproc-1.0.4 features/date/LocalizedDateFormats-ru-RU.feature