From 1bbcffd761e9c5bab2e953ff3cb7098d3fa66cd7 Mon Sep 17 00:00:00 2001 From: Octavian Patrascoiu Date: Thu, 16 Nov 2023 13:06:16 +0000 Subject: [PATCH] Add tests to cover context types (#624) --- .../0082-feel-coercion-test-01.xml | 37 ++++++++++++++ .../0082-feel-coercion/0082-feel-coercion.dmn | 48 +++++++++++++++++++ 2 files changed, 85 insertions(+) diff --git a/TestCases/compliance-level-3/0082-feel-coercion/0082-feel-coercion-test-01.xml b/TestCases/compliance-level-3/0082-feel-coercion/0082-feel-coercion-test-01.xml index 0c4f869ee..360ece0f1 100644 --- a/TestCases/compliance-level-3/0082-feel-coercion/0082-feel-coercion-test-01.xml +++ b/TestCases/compliance-level-3/0082-feel-coercion/0082-feel-coercion-test-01.xml @@ -449,4 +449,41 @@ null // BKM variable's typeRef is number. --> + + Value of context() equivalentTo the decision typeRef + + + + 1 + + + 2 + + + + + + + Value of context() conformsTo the decision typeRef + + + + 1 + + + 2 + + + + + + + Value of context() does not conformsTo the decision typeRef + + + + + + + diff --git a/TestCases/compliance-level-3/0082-feel-coercion/0082-feel-coercion.dmn b/TestCases/compliance-level-3/0082-feel-coercion/0082-feel-coercion.dmn index 2358a1291..3302b4174 100644 --- a/TestCases/compliance-level-3/0082-feel-coercion/0082-feel-coercion.dmn +++ b/TestCases/compliance-level-3/0082-feel-coercion/0082-feel-coercion.dmn @@ -24,6 +24,33 @@ + + + number + + + number + + + + + + number + + + + + + number + + + number + + + number + + + @@ -519,5 +546,26 @@ + + + + context(entries: [{key:"a", value:1}, {key:"b", value:2}]) + + + + + + + context(entries: [{key:"a", value:1}, {key:"b", value:2}]) + + + + + + + context(entries: [{key:"a", value:1}, {key:"b", value:2}]) + + + \ No newline at end of file