I tried tracking down in DMN-TCK if there's a test case for this, but couldn't easily find one. I also couldn't find an explicit case in the DMN 1.3 FEEL standard PDF for this, so this may be a wrong expectation of me... However, the Camunda playground (https://camunda.github.io/feel-scala/docs/playground/) does support it.
Describe the Bug
A range expression on strings doesn't work. Tested examples:
x >= "1015CJ" and x <= "1020ZZ"
x in ["1015CJ".."1020ZZ"]
The reported error is "Failed to evaluate FEEL expression: illegal range start: 1015CJ".
Single character ranges (like x in ["A".."C"]) do work though!
The syntax tree on the playground looks correct however.
I tried tracking down in DMN-TCK if there's a test case for this, but couldn't easily find one. I also couldn't find an explicit case in the DMN 1.3 FEEL standard PDF for this, so this may be a wrong expectation of me... However, the Camunda playground (https://camunda.github.io/feel-scala/docs/playground/) does support it.
Describe the Bug
A range expression on strings doesn't work. Tested examples:
x >= "1015CJ" and x <= "1020ZZ"
x in ["1015CJ".."1020ZZ"]
The reported error is "Failed to evaluate FEEL expression: illegal range start: 1015CJ".
Single character ranges (like
x in ["A".."C"]
) do work though!The syntax tree on the playground looks correct however.
Steps to Reproduce
["AA".."ZZ"]
Playground: https://nikku.github.io/feel-playground/?e=%5B%22AA%22..%22ZZ%22%5D&c=%7B%0A++%22%3F%22%3A+%22CC%22%0A%7D&t=expression&st=true
Expected Behavior
Multi-character strings can be used in ranges.
Environment