diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-01-27 22:19:35 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-01-27 23:04:24 +0100 |
commit | 2839dc7ddf03a8d45f1f3fa694c13e053f5c65e2 (patch) | |
tree | 7de2ced645e6dfea30e1485fd597855edf9cb6e4 /tests | |
parent | 0975c407e0db04ee704cbcfc5ac7925f475f26d8 (diff) | |
download | weechat-2839dc7ddf03a8d45f1f3fa694c13e053f5c65e2.zip |
tests: add eval tests on "regex not matching" comparison
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/core/test-core-eval.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/core/test-core-eval.cpp b/tests/unit/core/test-core-eval.cpp index d7bd83b96..e790b1ad0 100644 --- a/tests/unit/core/test-core-eval.cpp +++ b/tests/unit/core/test-core-eval.cpp @@ -139,6 +139,9 @@ TEST(CoreEval, EvalCondition) WEE_CHECK_EVAL("0", "abcd =~ \\(abcd\\)"); WEE_CHECK_EVAL("0", "=~abcd"); WEE_CHECK_EVAL("0", "(abcd) =~ \\(\\(abcd\\)\\)"); + WEE_CHECK_EVAL("0", "abcd !~ ^ABC"); + WEE_CHECK_EVAL("0", "abcd !~ (?-i)^abc"); + WEE_CHECK_EVAL("0", "abcd!~abc"); WEE_CHECK_EVAL("0", "abcd =* abce"); WEE_CHECK_EVAL("0", "abcd =* a*e"); WEE_CHECK_EVAL("0", "abcd !* *bc*"); @@ -203,6 +206,9 @@ TEST(CoreEval, EvalCondition) WEE_CHECK_EVAL("1", "(abcd) =~ (abcd)"); WEE_CHECK_EVAL("1", "(abcd) =~ \\(abcd\\)"); WEE_CHECK_EVAL("1", "((abcd)) =~ \\(\\(abcd\\)\\)"); + WEE_CHECK_EVAL("1", "abcd !~ (?-i)^ABC"); + WEE_CHECK_EVAL("1", "abcd !~ \\(abcd\\)"); + WEE_CHECK_EVAL("1", "!~abcd"); WEE_CHECK_EVAL("1", "abcd !* abce"); WEE_CHECK_EVAL("1", "abcd !* a*e"); WEE_CHECK_EVAL("1", "abcd =* *bc*"); |