From 0d907f8e570e5331af6d501a0f9ad1e5f58efd65 Mon Sep 17 00:00:00 2001 From: Philipp Ossler Date: Fri, 28 Jul 2023 05:50:37 +0200 Subject: [PATCH] test: Ignore test case for `is defined()` The test case for the `is defined()` function doesn't work anymore because with the new behavior a non-existing context entry returns null. As a result, the function invocation returns `true` instead of `false`. There is an issue to deal with the changed behavior of the function. See more here: https://github.com/camunda/feel-scala/issues/695. Ignoring the test case until the issue is solved. --- .../org/camunda/feel/impl/builtin/BuiltinFunctionTest.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/scala/org/camunda/feel/impl/builtin/BuiltinFunctionTest.scala b/src/test/scala/org/camunda/feel/impl/builtin/BuiltinFunctionTest.scala index b46873f39..a3a97d23e 100644 --- a/src/test/scala/org/camunda/feel/impl/builtin/BuiltinFunctionTest.scala +++ b/src/test/scala/org/camunda/feel/impl/builtin/BuiltinFunctionTest.scala @@ -52,11 +52,12 @@ class BuiltinFunctionsTest eval(""" is defined( {"a":1}.a ) """) should be(ValBoolean(true)) } - it should "return false if the value is not present" in { - + it should "return false if a variable doesn't exist" in { eval("is defined(a)") should be(ValBoolean(false)) eval("is defined(a.b)") should be(ValBoolean(false)) + } + ignore should "return false if a context entry doesn't exist" in { eval("is defined({}.a)") should be(ValBoolean(false)) eval("is defined({}.a.b)") should be(ValBoolean(false)) }