From 5209cd44fb7c6d8d1b25f74700b8213641b3e2e7 Mon Sep 17 00:00:00 2001 From: Octavian Patrascoiu Date: Thu, 2 Nov 2023 14:28:50 +0000 Subject: [PATCH] Add tests for 'matches' function. Address comments in PR --- .../1111-feel-matches-function-test-01.xml | 28 ++++++++++++++++--- .../1111-feel-matches-function.dmn | 12 ++++++-- 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/TestCases/compliance-level-3/1111-feel-matches-function/1111-feel-matches-function-test-01.xml b/TestCases/compliance-level-3/1111-feel-matches-function/1111-feel-matches-function-test-01.xml index b2d5a56cb..b6775fff0 100644 --- a/TestCases/compliance-level-3/1111-feel-matches-function/1111-feel-matches-function-test-01.xml +++ b/TestCases/compliance-level-3/1111-feel-matches-function/1111-feel-matches-function-test-01.xml @@ -78,6 +78,7 @@ + "." does NOT match CR in default mode @@ -387,15 +389,33 @@ - - Use a pattern whose interpretation is unknown. See public report 4466 and 21425. - + + A negative character class never match a non-character. + - false + + + false + + + true + + + + Caseless match with back-reference. diff --git a/TestCases/compliance-level-3/1111-feel-matches-function/1111-feel-matches-function.dmn b/TestCases/compliance-level-3/1111-feel-matches-function/1111-feel-matches-function.dmn index a3db1573d..21e55264c 100644 --- a/TestCases/compliance-level-3/1111-feel-matches-function/1111-feel-matches-function.dmn +++ b/TestCases/compliance-level-3/1111-feel-matches-function/1111-feel-matches-function.dmn @@ -1,12 +1,16 @@ - FEEL built-in function 'matches(input, pattern, flags?)' in category string functions + + boolean + + Evaluates "matches" function with null input @@ -63,6 +67,7 @@ + "." does NOT match CR in default mode @@ -337,9 +343,9 @@ A negative character class never match a non-character. - + - matches("a", "a[^b]"), matches("a ", "a[^b]") + [matches("a", "a[^b]"), matches("a ", "a[^b]")]