Closed antvaset closed 4 months ago
Formatting check succeeded!
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 63.73%. Comparing base (
0670c4a
) to head (f2095cb
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This looks good @antvaset , my only question is is there a corresponding PR against the cql-tests repository to update these tests?
This looks good @antvaset , my only question is is there a corresponding PR against the cql-tests repository to update these tests?
Hi @brynrhodes, thanks for having a look! I've opened https://github.com/cqframework/cql-tests/pull/40 in cql-tests to add the new tests for both ProperContains
and ProperIn
. The new tests for ProperIn
in that PR all pass this updated implementation (see https://github.com/cqframework/clinical_quality_language/pull/1394).
This PR includes the following changes related to ProperContains:
1) Fix the
ProperContainsNullRightFalse
andProperContainsNullRightTrue
tests to make sure they are parsed asProperContains(List<T>, T)
(to match the test name/group). Withoutnull as String
, the expressionswere parsed as
ProperIncludes(List<T>, List<T>)
.2) Set the expected values of the library-based
ProperContainsTimeNull
andProperInTimeNull
tests to null to match those of the XML-basedProperContainsTimeNull
(link) andProperInTimeNull
(link).3) Update implementation of ProperContains evaluator to match the spec (link).
4) Add tests covering the edge cases in the ProperContains logic.