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:
@@ -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)");
|
||||
|
||||
Reference in New Issue
Block a user