summaryrefslogtreecommitdiff
path: root/tests/unit/core
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/core')
-rw-r--r--tests/unit/core/test-eval.cpp5
1 files changed, 5 insertions, 0 deletions
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);
}