summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-01-27 21:58:19 +0100
committerSébastien Helleu <flashcode@flashtux.org>2020-01-27 23:04:24 +0100
commit201b4da1690d5c856625c1c48f5202a82f26644c (patch)
treea72835766a14847015944791f6d65f9724fa9937
parenttests: add eval tests on options with different types (diff)
downloadweechat-201b4da1690d5c856625c1c48f5202a82f26644c.tar.xz
weechat-201b4da1690d5c856625c1c48f5202a82f26644c.zip
tests: add eval tests with buffer local variables
-rw-r--r--tests/unit/core/test-core-eval.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/core/test-core-eval.cpp b/tests/unit/core/test-core-eval.cpp
index 4e0b34ed4..7df3baddb 100644
--- a/tests/unit/core/test-core-eval.cpp
+++ b/tests/unit/core/test-core-eval.cpp
@@ -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",