From 8c56bd5afcd9b8e3e2a921146c26b65dc01d7f69 Mon Sep 17 00:00:00 2001 From: StrayAlien Date: Fri, 17 Nov 2023 00:08:12 +1100 Subject: [PATCH] DMN 1.4 - 1151-boxed-filter (#602) * 1150-boxed-conditional * commented out test 3/6 for undecided list coercion --- .../1151-boxed-filter-test-01.xml | 81 +++++++++++++++++++ .../1151-boxed-filter/1151-boxed-filter.dmn | 67 +++++++++++++++ 2 files changed, 148 insertions(+) create mode 100644 TestCases/compliance-level-3/1151-boxed-filter/1151-boxed-filter-test-01.xml create mode 100644 TestCases/compliance-level-3/1151-boxed-filter/1151-boxed-filter.dmn 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 000000000..f6c0bd323 --- /dev/null +++ b/TestCases/compliance-level-3/1151-boxed-filter/1151-boxed-filter-test-01.xml @@ -0,0 +1,81 @@ + + + + 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 'match' does not return boolean + + + + + + + + + Will return null when any 'match' does not return boolean + + + + + + + + + + + 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 000000000..6a771ae89 --- /dev/null +++ b/TestCases/compliance-level-3/1151-boxed-filter/1151-boxed-filter.dmn @@ -0,0 +1,67 @@ + + + Boxed Filter Expression + + + + + [1,2,3,4,5] + item >= 3 + + + + + + + [1,2,3,4,5] + item > 5 + + + + + + + + + + [1,2,3,4,5] + "not a boolean" + + + + + + + [1,2,3,4,5] + if (item <= 3) then true else "not a boolean" + + + + + + + +