Skip to content

Commit

Permalink
Change tests to match semantics in Section 10.3.2.14 For loop express…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
opatrascoiu committed Nov 25, 2024
1 parent a967d57 commit a78a419
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,26 +291,19 @@
</testCase>

<testCase id="decision_023">
<description>a valid numeric range is permitted as iteration context</description>
<description>numeric range is not permitted as iteration domain</description>
<resultNode name="decision_023" type="decision">
<expected>
<list>
<item><value xsi:type="xsd:decimal">1</value></item>
<item><value xsi:type="xsd:decimal">2</value></item>
</list>
<value xsi:nil="true"/>
</expected>
</resultNode>
</testCase>

<testCase id="decision_024">
<description>a valid date range is permitted as iteration context</description>
<description>date range is not permitted as iteration domain</description>
<resultNode name="decision_024" type="decision">
<expected>
<list>
<item><value xsi:type="xsd:date">1980-01-01</value></item>
<item><value xsi:type="xsd:date">1980-01-02</value></item>
<item><value xsi:type="xsd:date">1980-01-03</value></item>
</list>
<value xsi:nil="true"/>
</expected>
</resultNode>
</testCase>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,15 @@
</decision>

<decision name="decision_023" id="_decision_023">
<!-- a valid numeric range is permitted as iteration context -->
<!-- numeric range is not permitted as iteration domain -->
<variable name="decision_023"/>
<literalExpression>
<text>for i in [1..2] return i</text>
</literalExpression>
</decision>

<decision name="decision_024" id="_decision_024">
<!-- a valid date range is permitted as iteration context -->
<!-- date range is not permitted as iteration domain -->
<variable name="decision_024"/>
<literalExpression>
<text>for i in [@"1980-01-01"..@"1980-01-03"] return i</text>
Expand Down

0 comments on commit a78a419

Please sign in to comment.