1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 11:13:12 +02:00

tests: add test on the "extra" option on function eval_expression()

This commit is contained in:
Sébastien Helleu
2016-08-18 22:11:50 +02:00
parent e00fb7d0e5
commit e218db3582
+5
View File
@@ -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);
}