From 5c24801c0c8158f0fc3589fa85c8796f5ff3a556 Mon Sep 17 00:00:00 2001 From: Octavian Patrascoiu Date: Fri, 21 Jul 2023 13:32:07 +0100 Subject: [PATCH] Add tests to cover context types --- .../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..164a51985 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