diff --git a/TestCases/compliance-level-3/1151-boxed-filter/1151-boxed-filter-test-01.xml b/TestCases/compliance-level-3/1151-boxed-filter/1151-boxed-filter-test-01.xml new file mode 100644 index 00000000..7d72a91b --- /dev/null +++ b/TestCases/compliance-level-3/1151-boxed-filter/1151-boxed-filter-test-01.xml @@ -0,0 +1,75 @@ + + + + 1151-boxed-filter.dmn + + + Will filter 'in' values based on 'match' expression + + + + + 3 + + + 4 + + + 5 + + + + + + + + + Will return an empty list when no values match + + + + + + + + + + Will return null when 'in' expression is not a list + + + + + + + + + Will return null when 'match' does not return boolean + + + + + + + + + Will return null when any 'match' does not return boolean + + + + + + + + + Will not coerce single value 'in' expression to list - and return null + + + + + + + + diff --git a/TestCases/compliance-level-3/1151-boxed-filter/1151-boxed-filter.dmn b/TestCases/compliance-level-3/1151-boxed-filter/1151-boxed-filter.dmn new file mode 100644 index 00000000..a1418643 --- /dev/null +++ b/TestCases/compliance-level-3/1151-boxed-filter/1151-boxed-filter.dmn @@ -0,0 +1,61 @@ + + + Boxed Filter Expression + + + + + [1,2,3,4,5] + item >= 3 + + + + + + + [1,2,3,4,5] + item > 5 + + + + + + + "not a list" + true + + + + + + + [1,2,3,4,5] + "not a boolean" + + + + + + + [1,2,3,4,5] + if (item <= 3) then true else "not a boolean" + + + + + + + 1 + item >= 3 + + + + +