diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-01-27 22:35:26 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-01-27 23:04:24 +0100 |
commit | b7c09ed084aa579e47cd979ce9b62ef01fc70df1 (patch) | |
tree | 7860ea04f1500dd476517af5b6d91d114411924c /tests | |
parent | a6a6fb74c209a01f36b5114a1c323f641c6e927c (diff) | |
download | weechat-b7c09ed084aa579e47cd979ce9b62ef01fc70df1.zip |
tests: add eval tests on conditions with text after closing parenthesis
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/core/test-core-eval.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/core/test-core-eval.cpp b/tests/unit/core/test-core-eval.cpp index 24213c21b..f1cb40c6b 100644 --- a/tests/unit/core/test-core-eval.cpp +++ b/tests/unit/core/test-core-eval.cpp @@ -136,6 +136,7 @@ TEST(CoreEval, EvalCondition) WEE_CHECK_EVAL("0", "1 && (0 || 0)"); WEE_CHECK_EVAL("0", "(0 || 1) && 0"); WEE_CHECK_EVAL("0", "((0 || 1) && 1) && 0"); + WEE_CHECK_EVAL("0", "(0) "); WEE_CHECK_EVAL("0", "abcd =~ (?-i)^ABC"); WEE_CHECK_EVAL("0", "abcd =~ \\(abcd\\)"); WEE_CHECK_EVAL("0", "=~abcd"); @@ -200,6 +201,7 @@ TEST(CoreEval, EvalCondition) WEE_CHECK_EVAL("1", "1 && (0 || 1)"); WEE_CHECK_EVAL("1", "(0 || 1) && 1"); WEE_CHECK_EVAL("1", "((0 || 1) && 1) && 1"); + WEE_CHECK_EVAL("1", "(1)1"); WEE_CHECK_EVAL("1", "abcd =~ ^ABC"); WEE_CHECK_EVAL("1", "abcd =~ (?-i)^abc"); WEE_CHECK_EVAL("1", "abcd=~abc"); |