Sha256: 997470f0745958fb5c7a6309e6d14aa0bf4763a2aea4f558a6755a0638958067

Contents?: true

Size: 1.14 KB

Versions: 34

Compression:

Stored size: 1.14 KB

Contents

Feature: Parse CSL localized date elements
	As a hacker of CSL styles
	I want to be able to parse CSL localized date strings
	
	Scenario: A text date
		When I parse the CSL string in the Locale scope
			"""
			<date form="text">
		    <date-part name="month" suffix=" "/>
		    <date-part name="day" form="numeric-leading-zeros" suffix=", "/>
		    <date-part name="year"/>
		  </date>
			"""
		Then the nodename should be "date"
		And the attribute "form" should be "text"
		And the node should have 3 parts
		And text? should be "true"
		And the part number 1 should have the attribute "name" set to "month"

	Scenario: A numeric date
		When I parse the CSL string in the Locale scope
			"""
		  <date form="numeric">
		    <date-part name="month" form="numeric-leading-zeros" suffix="/"/>
		    <date-part name="day" form="numeric-leading-zeros" suffix="/"/>
		    <date-part name="year"/>
		  </date>
			"""
		Then the nodename should be "date"
		And the attribute "form" should be "numeric"
		And the node should have 3 parts
		And text? should be "false"
		And numeric? should be "true"
		And the part number 3 should have the attribute "name" set to "year"
	

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
csl-1.3.2 features/parser/localized_dates.feature
csl-1.3.1 features/parser/localized_dates.feature
csl-1.3.0 features/parser/localized_dates.feature
csl-1.2.3 features/parser/localized_dates.feature
csl-1.2.2 features/parser/localized_dates.feature
csl-1.2.1 features/parser/localized_dates.feature
csl-1.2.0 features/parser/localized_dates.feature
csl-1.1.0 features/parser/localized_dates.feature
csl-1.0.2 features/parser/localized_dates.feature
csl-1.0.1 features/parser/localized_dates.feature
csl-1.0.0 features/parser/localized_dates.feature
csl-1.0.0.pre23 features/parser/localized_dates.feature
csl-1.0.0.pre22 features/parser/localized_dates.feature
csl-1.0.0.pre21 features/parser/localized_dates.feature
csl-1.0.0.pre20 features/parser/localized_dates.feature
csl-1.0.0.pre19 features/parser/localized_dates.feature
csl-1.0.0.pre18 features/parser/localized_dates.feature
csl-1.0.0.pre17 features/parser/localized_dates.feature
csl-1.0.0.pre16 features/parser/localized_dates.feature
csl-1.0.0.pre15 features/parser/localized_dates.feature