summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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 d10fa8490..868574ff0 100644
--- a/tests/unit/core/test-core-eval.cpp
+++ b/tests/unit/core/test-core-eval.cpp
@@ -384,6 +384,11 @@ TEST(CoreEval, EvalExpression)
WEE_CHECK_EVAL("Hello, \x19" "F03world!",
"${revscr:${revscr:Hello, ${color:red}world!}}");
+ /* test repeat of string (invalid values) */
+ WEE_CHECK_EVAL("", "${repeat:}");
+ WEE_CHECK_EVAL("", "${repeat:0}");
+ WEE_CHECK_EVAL("", "${repeat:a,x}");
+
/* test repeat of string */
WEE_CHECK_EVAL("", "${repeat:-1,x}");
WEE_CHECK_EVAL("", "${repeat:0,x}");