summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-03-28 22:09:11 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-03-28 22:09:11 +0200
commiteb2d0ac58af5d7cac5fb04839b8bb9a67541b12e (patch)
treef0eb29f87b934e94ea3c6dfc0f82695d96e3c6b2 /tests
parent30450214307e3eba72dd411e0c700163341d7cdf (diff)
downloadweechat-eb2d0ac58af5d7cac5fb04839b8bb9a67541b12e.zip
tests: add tests on combining characters in cut/cutscr (evaluation of expression)
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/core/test-eval.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/core/test-eval.cpp b/tests/unit/core/test-eval.cpp
index b0fc3384e..4f2a92e8e 100644
--- a/tests/unit/core/test-eval.cpp
+++ b/tests/unit/core/test-eval.cpp
@@ -258,7 +258,8 @@ TEST(Eval, EvalExpression)
WEE_CHECK_EVAL("こんにちは+", "${cut:5,+,こんにちは世界}");
WEE_CHECK_EVAL("こん+", "${cutscr:4,+,こんにちは世界}");
- WEE_CHECK_EVAL("こん+", "${cutscr:4,+,こんにちは世界}");
+ WEE_CHECK_EVAL("a+", "${cut:1,+,a${\\u0308}}");
+ WEE_CHECK_EVAL("a\u0308", "${cutscr:1,+,a${\\u0308}}");
/* test color */
WEE_CHECK_EVAL(gui_color_get_custom ("green"), "${color:green}");