Skip to content

Commit 2d6a02d

Browse files
authored
Merge pull request #49 from antvaset/ambiguous-tests
Cast nulls as lists or intervals to avoid ambiguities
2 parents a0e5edc + 1fa5a1c commit 2d6a02d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/cql/CqlIntervalOperatorsTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@
443443
</test>
444444
<test name="TestNullElement1" version="1.0">
445445
<capability code="interval-operators"/>
446-
<expression>null contains 5</expression>
446+
<expression>null as Interval&lt;Integer&gt; contains 5</expression>
447447
<output>false</output>
448448
</test>
449449
<test name="TestNullElement2" version="1.0">

tests/cql/CqlListOperatorsTest.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
</test>
100100
<test name="ContainsNullLeft" version="1.0">
101101
<capability code="list-operators" />
102-
<expression>null contains 'a'</expression>
102+
<expression>null as List&lt;String&gt; contains 'a'</expression>
103103
<output>false</output>
104104
</test>
105105
</group>
@@ -389,7 +389,7 @@
389389
</test>
390390
<test name="In1Null" version="1.0">
391391
<capability code="list-operators" />
392-
<expression>1 in null</expression>
392+
<expression>1 in null as List&lt;Integer&gt;</expression>
393393
<output>false</output>
394394
</test>
395395
<test name="In1And12" version="1.0">
@@ -472,7 +472,7 @@
472472
</test>
473473
<test name="IncludesNullLeft" version="1.0">
474474
<capability code="list-operators" />
475-
<expression>null includes {2}</expression>
475+
<expression>null as List&lt;Integer&gt; includes {2}</expression>
476476
<output>null</output>
477477
</test>
478478
<!-- this test is going to the ContainsEvaluator -->
@@ -537,7 +537,7 @@
537537
</test>
538538
<test name="IncludedInNullRight" version="1.0">
539539
<capability code="list-operators" />
540-
<expression>{'s', 'a', 'm'} included in null</expression>
540+
<expression>{'s', 'a', 'm'} included in null as List&lt;String&gt;</expression>
541541
<output>null</output>
542542
</test>
543543
</group>

0 commit comments

Comments
 (0)