summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-01-27 22:35:26 +0100
committerSébastien Helleu <flashcode@flashtux.org>2020-01-27 23:04:24 +0100
commitb7c09ed084aa579e47cd979ce9b62ef01fc70df1 (patch)
tree7860ea04f1500dd476517af5b6d91d114411924c
parenttests: add eval tests on conditions with leading and trailing spaces (ignored) (diff)
downloadweechat-b7c09ed084aa579e47cd979ce9b62ef01fc70df1.tar.xz
weechat-b7c09ed084aa579e47cd979ce9b62ef01fc70df1.zip
tests: add eval tests on conditions with text after closing parenthesis
-rw-r--r--tests/unit/core/test-core-eval.cpp2
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");