1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 18:53:12 +02:00

core: do not remove quotes in arguments of command /eval (closes #1601)

Now, /eval -n -c "a" == "a" returns True instead of False.

When quotes were removed, the condition evaluated was: a" == "a (which is
False).
This commit is contained in:
Sébastien Helleu
2020-12-25 00:21:03 +01:00
parent a8abfcd7b4
commit ee9aa28a8c
3 changed files with 28 additions and 30 deletions
+2
View File
@@ -203,6 +203,8 @@ TEST(CoreEval, EvalCondition)
WEE_CHECK_EVAL("1", "-0xA3 < 2");
WEE_CHECK_EVAL("1", "1 == 18 > 5");
WEE_CHECK_EVAL("1", "abc == abc");
WEE_CHECK_EVAL("1", "'abc' == 'abc'");
WEE_CHECK_EVAL("1", "\"abc\" == \"abc\"");
WEE_CHECK_EVAL("1", "(26 > 5)");
WEE_CHECK_EVAL("1", "((26 > 5))");
WEE_CHECK_EVAL("1", "(5 < 26)");