diff --git a/TestCases/compliance-level-3/1101-feel-floor-function/1101-feel-floor-function-test-01.xml b/TestCases/compliance-level-3/1101-feel-floor-function/1101-feel-floor-function-test-01.xml index ad039120..cc17bb11 100644 --- a/TestCases/compliance-level-3/1101-feel-floor-function/1101-feel-floor-function-test-01.xml +++ b/TestCases/compliance-level-3/1101-feel-floor-function/1101-feel-floor-function-test-01.xml @@ -1,6 +1,9 @@ - + 1101-feel-floor-function.dmn @@ -9,46 +12,159 @@ - - + + + Will round down positive number to nearest integer when no scale + - 1 + 1 - - + + + Will round down negative number to nearest integer when no scale + - -2 + -2 - - + + + Will round down negative number to nearest integer when no scale + - 1 + 0 - - + + + Will round down positive decimal to given scale + - -11 + 1.5 - - + + + Will round down negative decimal to given scale + - 5 + -1.6 - - + + + Will give null when 'n' is null + - -1 + + + + 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/1101-feel-floor-function/1101-feel-floor-function.dmn b/TestCases/compliance-level-3/1101-feel-floor-function/1101-feel-floor-function.dmn index 9f29bd3f..d5bdc60b 100644 --- a/TestCases/compliance-level-3/1101-feel-floor-function/1101-feel-floor-function.dmn +++ b/TestCases/compliance-level-3/1101-feel-floor-function/1101-feel-floor-function.dmn @@ -1,103 +1,128 @@ - - FEEL built-in function 'floor(n)' in category numeric functions - - number - - - number - - - number - - - number - - - number - - - number - - - Tests FEEL expression: 'floor(1.5)' and expects result: '1 (number)' - Result of FEEL expression 'floor(1.5)'? - 1 (number) - - + + FEEL built-in function 'floor(n, scale)' in category numeric functions + + + + floor(1.5) - - Tests FEEL expression: 'floor(-1.5)' and expects result: '-2 (number)' - Result of FEEL expression 'floor(-1.5)'? - -2 (number) - - + + + + floor(-1.5) - - Tests FEEL expression: 'floor(--1)' and expects result: '1 (number)' - Result of FEEL expression 'floor(--1)'? - 1 (number) - - - floor(--1) - - - - Tests FEEL expression: 'floor(-5/2.3*5)' and expects result: '-11 (number)' - Result of FEEL expression 'floor(-5/2.3*5)'? - -11 (number) - - - floor(-5/2.3*5) - - - - Tests FEEL expression: 'floor(n:5.777)' and expects result: '5 (number)' - Result of FEEL expression 'floor(n:5.777)'? - 5 (number) - - - floor(n:5.777) - - - - Tests FEEL expression: 'floor(n:-.33333)' and expects result: '-1 (number)' - Result of FEEL expression 'floor(n:-.33333)'? - -1 (number) - - - floor(n:-.33333) - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + floor(0.3333) + + + + + + + floor(1.56, 1) + + + + + + + floor(-1.56, 1) + + + + + + + floor(null, 1) + + + + + + + floor(n:null, scale:1) + + + + + + + floor(1.56, null) + + + + + + + floor(n:1.56, scale:null) + + + + + + + floor() + + + + + + + floor(1.5, 1, 2) + + + + + + + floor(n:1.5, scale:1, stuff:2) + + + + + + + floor(n:1.5, scal:1) + + + + + + + floor("1.5") + + + + + + + floor(1.5, "1") + + + + + + + floor(n:"1.5") + + + + + + + floor(n:1.5, scale:"1") + + +