From 70f0c81a2c504a4b0a57e86085970539e34ae441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 27 Jan 2020 21:36:10 +0100 Subject: [PATCH] tests: add eval tests with invalid values for "modifier:" --- tests/unit/core/test-core-eval.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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",