diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-09-21 13:54:36 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-09-21 13:54:36 +0200 |
commit | e1a461279731877ad66298d9c0576997474453af (patch) | |
tree | deb81f9f0b023a969e3592d15936aecdec3907cc /tests/unit/core/test-core-eval.cpp | |
parent | de456363882d54f18d6fd8614c6d5431d7402824 (diff) | |
download | weechat-e1a461279731877ad66298d9c0576997474453af.zip |
core: ignore color codes in ${length:xxx} and ${lengthscr:xxx}
Diffstat (limited to 'tests/unit/core/test-core-eval.cpp')
-rw-r--r-- | tests/unit/core/test-core-eval.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/core/test-core-eval.cpp b/tests/unit/core/test-core-eval.cpp index d2a4da21e..65b2e6fed 100644 --- a/tests/unit/core/test-core-eval.cpp +++ b/tests/unit/core/test-core-eval.cpp @@ -367,10 +367,12 @@ TEST(CoreEval, EvalExpression) WEE_CHECK_EVAL("0", "${length:}"); WEE_CHECK_EVAL("4", "${length:test}"); WEE_CHECK_EVAL("7", "${length:こんにちは世界}"); + WEE_CHECK_EVAL("7", "${length:${color:green}こんにちは世界}"); WEE_CHECK_EVAL("0", "${lengthscr:}"); WEE_CHECK_EVAL("4", "${lengthscr:test}"); WEE_CHECK_EVAL("14", "${lengthscr:こんにちは世界}"); + WEE_CHECK_EVAL("14", "${lengthscr:${color:green}こんにちは世界}"); /* test color */ WEE_CHECK_EVAL(gui_color_get_custom ("green"), "${color:green}"); |