tck
tck copied to clipboard
[0067-feel-split-function] The regex usage differences from the DMN specification
Description
The test case 0067-feel-split-function: 001 verifies the usage of the split() function with a regex argument.
The DMN evaluates the following FEEL expression:
split("John Doe", "\s")
The test case is the same as in the DMN 1.5 specification (Chapter 10.3.4.3 String functions, page 142):
However, there is a difference in the regex. Instead of "\\s" from the DMN specification, the test case uses "\s" (one backslash vs. two backslash).
We should align the TCK test case with the DMN specification.
As far as I understand the DMN specification, the string literal "\s" is invalid because it is not a listed escape character (from grammar rule 64):