From e218db3582c8d668c1623e3cf1c559ab590278e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 18 Aug 2016 22:11:50 +0200 Subject: tests: add test on the "extra" option on function eval_expression() --- tests/unit/core/test-eval.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/unit/core') diff --git a/tests/unit/core/test-eval.cpp b/tests/unit/core/test-eval.cpp index 0c2c1d9d3..bddca19d5 100644 --- a/tests/unit/core/test-eval.cpp +++ b/tests/unit/core/test-eval.cpp @@ -162,6 +162,11 @@ TEST(Eval, EvalCondition) WEE_CHECK_EVAL("1", "${buffer.number} == 1"); WEE_CHECK_EVAL("1", "${window.buffer.number} == 1"); + /* evaluation of extra_vars */ + hashtable_set (options, "extra", "eval"); + hashtable_set (extra_vars, "test", "${buffer.number}"); + WEE_CHECK_EVAL("1", "${test} == 1"); + hashtable_free (extra_vars); hashtable_free (options); } -- cgit v1.2.3