forked from cqframework/clinical_quality_language
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cqframework#648: added tests for validating type inference through co…
…nditional (cqframework#1252) * chore/added tests for validating type inference through conditional * chore: removed unused imports from SemanticTests * chore: removed added whitespace * chore: updated the comparison using lists * chore: changed list type to set for choice types return comparison --------- Co-authored-by: JP <jonathan.i.percival@gmail.com>
- Loading branch information
Showing
4 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#Wed Oct 18 04:59:14 NDT 2023 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
Src/java/cql-to-elm/src/test/resources/org/cqframework/cql/cql2elm/Issue648.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
library Issue648 | ||
|
||
/* | ||
https://github.com/cqframework/clinical_quality_language/issues/648 | ||
Type inference through conditionals (case-when, if-else, etc) | ||
*/ | ||
|
||
define "Cases": | ||
case | ||
when true then 'true' | ||
when false then false | ||
when true then 5 | ||
else null | ||
end | ||
|
||
define "If": | ||
if true then 'true' | ||
else if false then false | ||
else null |