-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into br-1475-mapping-signaturelevel
- Loading branch information
Showing
4 changed files
with
59 additions
and
3 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
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
25 changes: 25 additions & 0 deletions
25
...ne/src/test/java/org/opencds/cqf/cql/engine/elm/executing/AnyInValueSetEvaluatorTest.java
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,25 @@ | ||
package org.opencds.cqf.cql.engine.elm.executing; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertFalse; | ||
import static org.junit.jupiter.api.Assertions.assertInstanceOf; | ||
|
||
import org.hl7.elm.r1.ValueSetRef; | ||
import org.junit.jupiter.api.Test; | ||
import org.opencds.cqf.cql.engine.execution.Environment; | ||
import org.opencds.cqf.cql.engine.execution.State; | ||
import org.opencds.cqf.cql.engine.runtime.ValueSet; | ||
|
||
public class AnyInValueSetEvaluatorTest { | ||
|
||
@Test | ||
void issue1469FalseOnNullCode() { | ||
var env = new Environment(null); | ||
var state = new State(env); | ||
var valueSet = new ValueSet(); | ||
var valueSetRef = new ValueSetRef(); | ||
|
||
Object actual = AnyInValueSetEvaluator.internalEvaluate(null, valueSetRef, valueSet, state); | ||
assertInstanceOf(Boolean.class, actual); | ||
assertFalse((Boolean) actual); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...ngine/src/test/java/org/opencds/cqf/cql/engine/elm/executing/InValueSetEvaluatorTest.java
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,23 @@ | ||
package org.opencds.cqf.cql.engine.elm.executing; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertFalse; | ||
import static org.junit.jupiter.api.Assertions.assertInstanceOf; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.opencds.cqf.cql.engine.execution.Environment; | ||
import org.opencds.cqf.cql.engine.execution.State; | ||
import org.opencds.cqf.cql.engine.runtime.ValueSet; | ||
|
||
public class InValueSetEvaluatorTest { | ||
|
||
@Test | ||
void issue1469FalseOnNullCode() { | ||
var env = new Environment(null); | ||
var state = new State(env); | ||
var valueSet = new ValueSet(); | ||
|
||
Object actual = InValueSetEvaluator.inValueSet(null, valueSet, state); | ||
assertInstanceOf(Boolean.class, actual); | ||
assertFalse((Boolean) actual); | ||
} | ||
} |