summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-01-27 21:36:10 +0100
committerSébastien Helleu <flashcode@flashtux.org>2020-01-27 23:04:24 +0100
commit70f0c81a2c504a4b0a57e86085970539e34ae441 (patch)
treecefebbfb268f3c1c1ff2d4a38afb2a575c6936e5
parenttests: add eval tests with invalid values for "repeat:" (diff)
downloadweechat-70f0c81a2c504a4b0a57e86085970539e34ae441.tar.xz
weechat-70f0c81a2c504a4b0a57e86085970539e34ae441.zip
tests: add eval tests with invalid values for "modifier:"
-rw-r--r--tests/unit/core/test-core-eval.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/core/test-core-eval.cpp b/tests/unit/core/test-core-eval.cpp
index 868574ff0..14806f90f 100644
--- a/tests/unit/core/test-core-eval.cpp
+++ b/tests/unit/core/test-core-eval.cpp
@@ -426,6 +426,11 @@ TEST(CoreEval, EvalExpression)
WEE_CHECK_EVAL(str_value, "${color:irc.color.message_join}-test-");
WEE_CHECK_EVAL("test", "${option.not.found}test");
+ /* test modifier (invalid values) */
+ WEE_CHECK_EVAL("test_", "test_${modifier:}");
+ WEE_CHECK_EVAL("test_", "test_${modifier:xxx}");
+ WEE_CHECK_EVAL("test_", "test_${modifier:xxx,data}");
+
/* test modifier */
WEE_CHECK_EVAL("test_string", "test_${modifier:xxx,data,string}");
WEE_CHECK_EVAL("test_no_color",