Skip to content

Commit d572db3

Browse files
committed
Skip incorrect TestPointFromNull test
1 parent 81fcc09 commit d572db3

3 files changed

Lines changed: 17 additions & 73 deletions

File tree

test/spec-tests/cql/CqlIntervalOperatorsTest.cql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,9 +1403,11 @@ define "OverlapsAfter": Tuple{
14031403

14041404
define "PointFrom": Tuple{
14051405
"TestPointFromNull": Tuple{
1406+
skipped: 'Wrong output: Interval[null, null] is not a unit interval, nor is it null'
1407+
/*
14061408
expression: point from Interval[null, null],
14071409
output: null
1408-
},
1410+
*/ },
14091411
"TestPointFromInteger": Tuple{
14101412
expression: point from Interval[1, 1],
14111413
output: 1

test/spec-tests/cql/CqlIntervalOperatorsTest.json

Lines changed: 13 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -68012,20 +68012,11 @@
6801268012
"annotation": [],
6801368013
"element": [
6801468014
{
68015-
"name": "expression",
68016-
"annotation": [],
68017-
"elementType": {
68018-
"type": "NamedTypeSpecifier",
68019-
"name": "{urn:hl7-org:elm-types:r1}Any",
68020-
"annotation": []
68021-
}
68022-
},
68023-
{
68024-
"name": "output",
68015+
"name": "skipped",
6802568016
"annotation": [],
6802668017
"elementType": {
6802768018
"type": "NamedTypeSpecifier",
68028-
"name": "{urn:hl7-org:elm-types:r1}Any",
68019+
"name": "{urn:hl7-org:elm-types:r1}String",
6802968020
"annotation": []
6803068021
}
6803168022
}
@@ -68133,20 +68124,11 @@
6813368124
"annotation": [],
6813468125
"element": [
6813568126
{
68136-
"name": "expression",
68137-
"annotation": [],
68138-
"elementType": {
68139-
"type": "NamedTypeSpecifier",
68140-
"name": "{urn:hl7-org:elm-types:r1}Any",
68141-
"annotation": []
68142-
}
68143-
},
68144-
{
68145-
"name": "output",
68127+
"name": "skipped",
6814668128
"annotation": [],
6814768129
"elementType": {
6814868130
"type": "NamedTypeSpecifier",
68149-
"name": "{urn:hl7-org:elm-types:r1}Any",
68131+
"name": "{urn:hl7-org:elm-types:r1}String",
6815068132
"annotation": []
6815168133
}
6815268134
}
@@ -68250,65 +68232,24 @@
6825068232
"annotation": [],
6825168233
"element": [
6825268234
{
68253-
"name": "expression",
68254-
"annotation": [],
68255-
"elementType": {
68256-
"type": "NamedTypeSpecifier",
68257-
"name": "{urn:hl7-org:elm-types:r1}Any",
68258-
"annotation": []
68259-
}
68260-
},
68261-
{
68262-
"name": "output",
68235+
"name": "skipped",
6826368236
"annotation": [],
6826468237
"elementType": {
6826568238
"type": "NamedTypeSpecifier",
68266-
"name": "{urn:hl7-org:elm-types:r1}Any",
68239+
"name": "{urn:hl7-org:elm-types:r1}String",
6826768240
"annotation": []
6826868241
}
6826968242
}
6827068243
]
6827168244
},
6827268245
"element": [
6827368246
{
68274-
"name": "expression",
68275-
"value": {
68276-
"type": "PointFrom",
68277-
"resultTypeName": "{urn:hl7-org:elm-types:r1}Any",
68278-
"annotation": [],
68279-
"signature": [],
68280-
"operand": {
68281-
"type": "Interval",
68282-
"lowClosed": true,
68283-
"highClosed": true,
68284-
"annotation": [],
68285-
"resultTypeSpecifier": {
68286-
"type": "IntervalTypeSpecifier",
68287-
"annotation": [],
68288-
"pointType": {
68289-
"type": "NamedTypeSpecifier",
68290-
"name": "{urn:hl7-org:elm-types:r1}Any",
68291-
"annotation": []
68292-
}
68293-
},
68294-
"low": {
68295-
"type": "Null",
68296-
"resultTypeName": "{urn:hl7-org:elm-types:r1}Any",
68297-
"annotation": []
68298-
},
68299-
"high": {
68300-
"type": "Null",
68301-
"resultTypeName": "{urn:hl7-org:elm-types:r1}Any",
68302-
"annotation": []
68303-
}
68304-
}
68305-
}
68306-
},
68307-
{
68308-
"name": "output",
68247+
"name": "skipped",
6830968248
"value": {
68310-
"type": "Null",
68311-
"resultTypeName": "{urn:hl7-org:elm-types:r1}Any",
68249+
"type": "Literal",
68250+
"resultTypeName": "{urn:hl7-org:elm-types:r1}String",
68251+
"valueType": "{urn:hl7-org:elm-types:r1}String",
68252+
"value": "Wrong output: Interval[null, null] is not a unit interval, nor is it null",
6831268253
"annotation": []
6831368254
}
6831468255
}
@@ -81870,11 +81811,11 @@
8187081811
"annotation": [],
8187181812
"resultTypeSpecifier": {
8187281813
"type": "IntervalTypeSpecifier",
81873-
"localId": "15187",
81814+
"localId": "15176",
8187481815
"annotation": [],
8187581816
"pointType": {
8187681817
"type": "NamedTypeSpecifier",
81877-
"localId": "15188",
81818+
"localId": "15177",
8187881819
"name": "{urn:hl7-org:elm-types:r1}Any",
8187981820
"annotation": []
8188081821
}

test/spec-tests/skip-list.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ CqlIntervalOperatorsTest.In.TestInNullBoundaries Wrong output: Ac
1111
CqlListOperatorsTest.Equal.EqualNullNull Wrong output: According to spec, if either list contains a null, the result is null
1212
CqlListOperatorsTest.Sort.simpleSortAsc Wrong output: Queries return distinct lists by default; need to use "all" to retain duplicates
1313
CqlListOperatorsTest.Sort.simpleSortDesc Wrong output: Queries return distinct lists by default; need to use "all" to retain duplicates
14+
CqlIntervalOperatorsTest.PointFrom.TestPointFromNull Wrong output: Interval[null, null] is not a unit interval, nor is it null
1415

1516
# Potentially Incorrect Expected Output
1617
"CqlStringOperatorsTest.toString tests.DateTimeToString2" Answer does not include timezone offset, but default offset depends on test environment

0 commit comments

Comments
 (0)