diff --git a/tests/cql/CqlArithmeticFunctionsTest.xml b/tests/cql/CqlArithmeticFunctionsTest.xml index 72e3d73..6695af3 100644 --- a/tests/cql/CqlArithmeticFunctionsTest.xml +++ b/tests/cql/CqlArithmeticFunctionsTest.xml @@ -3,6 +3,16 @@ name="CqlArithmeticFunctionsTest" reference="https://cql.hl7.org/09-b-cqlreference.html#arithmetic-operators-4" version="1.0"> + @@ -35,6 +45,16 @@ Abs(-1L) 1L + + + Abs(minimum Integer) + null + + + + Abs(minimum Long) + null + @@ -69,6 +89,21 @@ 1L + 1L 2L + + + (maximum Integer) + 1 + null + + + + 25L + 5 + 30L + + + + 5.5'cm' + 2'cm2' + null + @@ -113,8 +148,8 @@ null - Ceiling(2147483648) - null + + Ceiling(2147483648) Ceiling(2147483648.2) @@ -133,8 +168,8 @@ -2147483648 - Ceiling(-2147483649) - null + + Ceiling(-2147483649) Ceiling(-2147483649.2) @@ -207,6 +242,12 @@ 10.0 'g' / 5 2.0'g' + + + + 5.0 'g' / 0 + null + @@ -255,8 +296,8 @@ 2147483647 - Floor(2147483648) - null + + Floor(2147483648) Floor(2147483648.2) @@ -275,8 +316,8 @@ null - Floor(-2147483649) - null + + Floor(-2147483649) Floor(-2147483649.2) @@ -314,12 +355,13 @@ 0.36787944 - Exp(1000) - + + Exp(1000) + null - Exp(1000.0) - + Exp(1000.0) + null @@ -425,12 +467,13 @@ null - Ln(0) - + + Ln(0) + null - Ln(-0) - + Ln(-0) + null Ln(1) @@ -621,6 +664,11 @@ 2.0'cm2' + + + (maximum Integer) * 2 + null + @@ -680,6 +728,16 @@ -(1'cm') -1.0'cm' + + + -(minimum Integer) + null + + + + -(minimum Long) + null + @@ -704,6 +762,10 @@ Precision(@T10:30:00.000) 9 + + Precision(null as Decimal) + null + @@ -747,12 +809,13 @@ @T11:59:59.999 - predecessor of DateTime(0001, 1, 1, 0, 0, 0, 0) - + + predecessor of DateTime(0001, 1, 1, 0, 0, 0, 0) + null - predecessor of @T00:00:00.000 - + predecessor of @T00:00:00.000 + null @@ -866,6 +929,16 @@ Round(-1.6) -2.0 + + + Round(2.5) + 3.0 + + + + Round(3.14159, null) + 3.0 + @@ -895,6 +968,16 @@ 2 - 1.1 0.9 + + + (minimum Integer) - 1 + null + + + + 3.14 'cm' - 3.12 'cm2' + null + @@ -933,12 +1016,13 @@ @T12:00:00.001 - successor of DateTime(9999, 12, 31, 23, 59, 59, 999) - + + successor of DateTime(9999, 12, 31, 23, 59, 59, 999) + null - successor of @T23:59:59.999 - + successor of @T23:59:59.999 + null