summaryrefslogtreecommitdiff
path: root/tests/unit/core/test-eval.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/core/test-eval.cpp')
-rw-r--r--tests/unit/core/test-eval.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/core/test-eval.cpp b/tests/unit/core/test-eval.cpp
index c24248495..6cc4ce54c 100644
--- a/tests/unit/core/test-eval.cpp
+++ b/tests/unit/core/test-eval.cpp
@@ -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}");