diff --git a/TestCases/compliance-level-3/1102-feel-ceiling-function/1102-feel-ceiling-function-test-01.xml b/TestCases/compliance-level-3/1102-feel-ceiling-function/1102-feel-ceiling-function-test-01.xml index 62a76ce99..0d8281fe7 100644 --- a/TestCases/compliance-level-3/1102-feel-ceiling-function/1102-feel-ceiling-function-test-01.xml +++ b/TestCases/compliance-level-3/1102-feel-ceiling-function/1102-feel-ceiling-function-test-01.xml @@ -1,6 +1,8 @@ - - + 1102-feel-ceiling-function.dmn @@ -8,46 +10,158 @@ - - + + + Will round up positive number to nearest integer when no scale + - 2 + 2 - - + + + Will round up negative number to nearest integer when no scale + - -1 + -1 - - + + + Will round up negative number to nearest integer when no scale + - 1 + 0 - - + + + Will round up positive decimal to given scale + - -10 + 1.6 - - + + + Will round up negative decimal to given scale + - 6 + -1.5 - - + + + Will give null when 'n' is null + - 0 + + + + Will give null when named param 'n' is null + + + + + + + + + Will give null when 'scale' is null + + + + + + + + + Will give null when named param 'scale' is null + + + + + + + + + No params gives null + + + + + + + + + Too many params gives null + + + + + + + + + Additional unknown named param gives null + + + + + + + + + Unknown named param gives null + + + + + + + + + Invalid type for 'n' gives null + + + + + + + + + Invalid type for named param 'n' gives null + + + + + + + + + Invalid type for 'scale' gives null + + + + + + + + + Invalid type for named param 'scale' gives null + + + + + + + diff --git a/TestCases/compliance-level-3/1102-feel-ceiling-function/1102-feel-ceiling-function.dmn b/TestCases/compliance-level-3/1102-feel-ceiling-function/1102-feel-ceiling-function.dmn index e68fc573d..8b5b58860 100644 --- a/TestCases/compliance-level-3/1102-feel-ceiling-function/1102-feel-ceiling-function.dmn +++ b/TestCases/compliance-level-3/1102-feel-ceiling-function/1102-feel-ceiling-function.dmn @@ -1,103 +1,128 @@ - - FEEL built-in function 'ceiling(n)' in category numeric functions - - number - - - number - - - number - - - number - - - number - - - number - - - Tests FEEL expression: 'ceiling(1.5)' and expects result: '2 (number)' - Result of FEEL expression 'ceiling(1.5)'? - 2 (number) - - + + FEEL built-in function 'ceiling(n, scale)' in category numeric functions + + + + ceiling(1.5) - - Tests FEEL expression: 'ceiling(-1.5)' and expects result: '-1 (number)' - Result of FEEL expression 'ceiling(-1.5)'? - -1 (number) - - + + + + ceiling(-1.5) - - Tests FEEL expression: 'ceiling(--1)' and expects result: '1 (number)' - Result of FEEL expression 'ceiling(--1)'? - 1 (number) - - - ceiling(--1) - - - - Tests FEEL expression: 'ceiling(-5/2.3*5)' and expects result: '-10 (number)' - Result of FEEL expression 'ceiling(-5/2.3*5)'? - -10 (number) - - - ceiling(-5/2.3*5) - - - - Tests FEEL expression: 'ceiling(n:5.777)' and expects result: '6 (number)' - Result of FEEL expression 'ceiling(n:5.777)'? - 6 (number) - - - ceiling(n:5.777) - - - - Tests FEEL expression: 'ceiling(n:-.33333)' and expects result: '0 (number)' - Result of FEEL expression 'ceiling(n:-.33333)'? - 0 (number) - - - ceiling(n:-.33333) - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + ceiling(-0.3333) + + + + + + + ceiling(1.56, 1) + + + + + + + ceiling(-1.56, 1) + + + + + + + ceiling(null, 1) + + + + + + + ceiling(n:null, scale:1) + + + + + + + ceiling(1.56, null) + + + + + + + ceiling(n:1.56, scale:null) + + + + + + + ceiling() + + + + + + + ceiling(1.5, 1, 2) + + + + + + + ceiling(n:1.5, scale:1, stuff:2) + + + + + + + ceiling(n:1.5, scal:1) + + + + + + + ceiling("1.5") + + + + + + + ceiling(1.5, "1") + + + + + + + ceiling(n:"1.5") + + + + + + + ceiling(n:1.5, scale:"1") + + +