tck icon indicating copy to clipboard operation
tck copied to clipboard

[0067-feel-split-function] The regex usage differences from the DMN specification

Open saig0 opened this issue 1 year ago • 4 comments

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):

Screenshot from 2024-09-25 12-50-44

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):

Screenshot from 2024-09-25 12-55-52

saig0 avatar Sep 25 '24 10:09 saig0