Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change 'for loop' tests to match semantics in Section 10.3.2.14 #684

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading