diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2016-08-18 22:11:50 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2016-08-18 22:11:50 +0200 |
commit | e218db3582c8d668c1623e3cf1c559ab590278e3 (patch) | |
tree | afd86cc7c8118987f728637d6ab7ded8ee46d1c4 /tests | |
parent | e00fb7d0e5148b0e13e01a6377940ae1e4672eea (diff) | |
download | weechat-e218db3582c8d668c1623e3cf1c559ab590278e3.zip |
tests: add test on the "extra" option on function eval_expression()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/core/test-eval.cpp | 5 |
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); } |