summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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",