tests: add eval tests with buffer local variables

v2.8-utf8proc
Sébastien Helleu 2020-01-27 21:58:19 +01:00
parent 8107b5d162
commit 201b4da169
1 changed files with 4 additions and 0 deletions

View File

@ -498,6 +498,10 @@ TEST(CoreEval, EvalExpression)
WEE_CHECK_EVAL("=!=", "${weechat.look.prefix_error}");
WEE_CHECK_EVAL("lightcyan", "${weechat.color.chat_nick}");
/* test buffer local variable */
WEE_CHECK_EVAL("core", "${plugin}");
WEE_CHECK_EVAL("weechat", "${name}");
/* test hdata */
WEE_CHECK_EVAL("x", "x${buffer.number");
WEE_CHECK_EVAL("x${buffer.number}1",