1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 00:03:12 +02:00

tests: add eval tests with invalid values for "repeat:"

This commit is contained in:
Sébastien Helleu
2020-01-27 21:32:28 +01:00
parent 1914ceb74f
commit 6d9a247df3
+5
View File
@@ -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}");