aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua/unit/expressions.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/lua/unit/expressions.lua')
-rw-r--r--test/lua/unit/expressions.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lua/unit/expressions.lua b/test/lua/unit/expressions.lua
index d75e09ebb..7bf3806b9 100644
--- a/test/lua/unit/expressions.lua
+++ b/test/lua/unit/expressions.lua
@@ -83,6 +83,7 @@ context("Rspamd expressions", function()
{'((A + B + C + D) > 1) & F', 0},
{'(A + B + C + D) > 1 && F || E', 1},
{'(A + B + C + D) > 100 && F || !E', 0},
+ {'F && ((A + B + C + D) > 1)', 0},
{'!!C', 1},
}
for _,c in ipairs(cases) do
@@ -90,7 +91,7 @@ context("Rspamd expressions", function()
{parse_func, process_func}, pool)
assert_not_nil(expr, "Cannot parse " .. c[1])
- --print(expr)
+ --print(expr)
res = expr:process(atoms)
assert_equal(res, c[2], string.format("Processed expr '%s' returned '%d', expected: '%d'",
expr:to_string(), res, c[2]))