Skip to content

Commit

Permalink
Enable Boolean and null literal tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antvaset committed Jun 21, 2024
1 parent e362b34 commit d4dd873
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,12 @@ public static Object[][] dataMethod() {
"cql/CqlTypeOperatorsTest/ToTime/ToTime4",
"cql/CqlTypesTest/DateTime/DateTimeUncertain",
"cql/CqlTypesTest/Time/TimeUpperBoundMillis",
"cql/ValueLiteralsAndSelectors/Boolean/BooleanFalse",
"cql/ValueLiteralsAndSelectors/Boolean/BooleanTrue",
"cql/ValueLiteralsAndSelectors/Decimal/Decimal10Pow28",
"cql/ValueLiteralsAndSelectors/Decimal/DecimalNeg10Pow28",
"cql/ValueLiteralsAndSelectors/Decimal/DecimalNegTenthStep",
"cql/ValueLiteralsAndSelectors/Decimal/DecimalPos10Pow28",
"cql/ValueLiteralsAndSelectors/Decimal/DecimalPosTenthStep",
"cql/ValueLiteralsAndSelectors/Decimal/DecimalTenthStep",
"cql/ValueLiteralsAndSelectors/Null/Null",
"r4/tests-fhir-r4/from-Zulip/(true and 'foo').empty()",
"r4/tests-fhir-r4/from-Zulip/(true | 'foo').allTrue()",
"r4/tests-fhir-r4/testAggregate/testAggregate1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,10 @@ protected void runTest(
String outputExpression = test.getOutput().get(0).getValue();
if ("null".equals(outputExpression)) {
cql = String.format("%s (%s) is %s", cql, testExpression, outputExpression);
} else if ("null".equals(testExpression)) {
cql = String.format("%s (%s) is %s", cql, outputExpression, testExpression);
} else {
cql = String.format("%s (%s) = %s", cql, testExpression, outputExpression);
cql = String.format("%s (%s) = (%s)", cql, testExpression, outputExpression);
}
} else {
cql = String.format("%s %s", cql, testExpression);
Expand Down

0 comments on commit d4dd873

Please sign in to comment.