camunda / feel-scala

FEEL parser and interpreter written in Scala
https://camunda.github.io/feel-scala/
Apache License 2.0
120 stars 49 forks source link

fix: Unary-test expression with null value #689

Closed saig0 closed 1 year ago

saig0 commented 1 year ago

Description

Align the behavior of unary-tests with a comparison to null. In both cases, the engine returns null.

For example, the evaluation of < 3 with null as the input value returns null. Same as the comparison null < 3 returns null.

Fixing the behavior in the parser by introducing a special case for simple-positive-unary-test (i.e. comparison with the input value).

Related issues

closes #679