Skip to content

Commit fef128c

Browse files
author
Bryn Rhodes
committed
Additional tests for PositionOf/LastPositionOf based on CQL clarification https://jira.hl7.org/browse/FHIR-52042
1 parent 0666708 commit fef128c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/cql/CqlStringOperatorsTest.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@
138138
<expression>LastPositionOf('hi', 'Say hi to Ohio!')</expression>
139139
<output>11</output>
140140
</test>
141+
<test name="LastPositionOf3" version="1.0">
142+
<capability code="string-operators" />
143+
<expression>LastPositionOf('', 'Say hi to Ohio!')</expression>
144+
<output>15</output>
145+
</test>
141146
</group>
142147
<group name="Length" version="1.0">
143148
<capability code="string-operators" />
@@ -266,6 +271,11 @@
266271
<expression>PositionOf('c', 'ab')</expression>
267272
<output>-1</output>
268273
</test>
274+
<test name="PositionOf3" version="1.0">
275+
<capability code="string-operators" />
276+
<expression>PositionOf('', 'Say hi to Ohio!')</expression>
277+
<output>0</output>
278+
</test>
269279
</group>
270280
<group name="ReplaceMatches" version="1.0">
271281
<capability code="string-operators" />

0 commit comments

Comments
 (0)