1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +02:00

core: add reverse of string in evaluation of expressions with "rev:" (closes #1200)

This commit is contained in:
Sébastien Helleu
2018-06-02 15:48:31 +02:00
parent ab9a0ec2e6
commit 1abf4040f1
30 changed files with 425 additions and 295 deletions
+4
View File
@@ -339,6 +339,10 @@ TEST(Eval, EvalExpression)
WEE_CHECK_EVAL("a+", "${cut:1,+,a${\\u0308}}");
WEE_CHECK_EVAL("a\u0308", "${cutscr:1,+,a${\\u0308}}");
/* test reverse of string */
WEE_CHECK_EVAL("!dlrow ,olleH", "${rev:Hello, world!}");
WEE_CHECK_EVAL("界世はちにんこ", "${rev:こんにちは世界}");
/* test color */
WEE_CHECK_EVAL(gui_color_get_custom ("green"), "${color:green}");
WEE_CHECK_EVAL(gui_color_get_custom ("*214"), "${color:*214}");