diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-01-27 21:36:10 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-01-27 23:04:24 +0100 |
commit | 70f0c81a2c504a4b0a57e86085970539e34ae441 (patch) | |
tree | cefebbfb268f3c1c1ff2d4a38afb2a575c6936e5 /tests/unit | |
parent | 6d9a247df3f3066df7d3cee810543568f0d81a40 (diff) | |
download | weechat-70f0c81a2c504a4b0a57e86085970539e34ae441.zip |
tests: add eval tests with invalid values for "modifier:"
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/core/test-core-eval.cpp | 5 |
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", |