From 5b012a14b092877033f4f8490045fc04fd50189c Mon Sep 17 00:00:00 2001 From: raleigh-g-thompson Date: Wed, 22 Oct 2025 04:35:13 -0400 Subject: [PATCH] adds ceiling and floor overflow/underflow tests --- tests/cql/CqlArithmeticFunctionsTest.xml | 80 ++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/tests/cql/CqlArithmeticFunctionsTest.xml b/tests/cql/CqlArithmeticFunctionsTest.xml index 175c581..b3c5124 100644 --- a/tests/cql/CqlArithmeticFunctionsTest.xml +++ b/tests/cql/CqlArithmeticFunctionsTest.xml @@ -100,6 +100,46 @@ Ceiling(1) 1 + + Ceiling(2147483647) + 2147483647 + + + Ceiling(2147483647.0) + 2147483647 + + + Ceiling(2147483647.2) + null + + + Ceiling(2147483648) + null + + + Ceiling(2147483648.2) + null + + + Ceiling(-2147483648) + -2147483648 + + + Ceiling(-2147483648.0) + -2147483648 + + + Ceiling(-2147483648.2) + -2147483648 + + + Ceiling(-2147483649) + null + + + Ceiling(-2147483649.2) + null + @@ -202,6 +242,46 @@ Floor(2) 2 + + Floor(2147483647) + 2147483647 + + + Floor(2147483647.0) + 2147483647 + + + Floor(2147483647.2) + 2147483647 + + + Floor(2147483648) + null + + + Floor(2147483648.2) + null + + + Floor(-2147483648) + -2147483648 + + + Floor(-2147483648.0) + -2147483648 + + + Floor(-2147483648.2) + -2147483648 + + + Floor(-2147483649) + null + + + Floor(-2147483649.2) + null +