summaryrefslogtreecommitdiff
path: root/tests/unit/core
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 /tests/unit/core
parent8107b5d162a2e3f96927119e38a63a5c7e3e254f (diff)
downloadweechat-201b4da1690d5c856625c1c48f5202a82f26644c.zip
tests: add eval tests with buffer local variables
Diffstat (limited to 'tests/unit/core')
-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",