aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua/unit
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-17 20:59:48 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-17 20:59:48 +0100
commit298432d784d1d2d56c223dd75678fe36fef14550 (patch)
tree0a3d09bf7b4445e8b2ffdeed4c6aace1a787004f /test/lua/unit
parent95645818062dffd97fc1f71f073501d11c49492f (diff)
downloadrspamd-298432d784d1d2d56c223dd75678fe36fef14550.tar.gz
rspamd-298432d784d1d2d56c223dd75678fe36fef14550.zip
[Fix] Fix false - operation
Diffstat (limited to 'test/lua/unit')
-rw-r--r--test/lua/unit/expressions.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lua/unit/expressions.lua b/test/lua/unit/expressions.lua
index c3a771c48..f4f4d2b58 100644
--- a/test/lua/unit/expressions.lua
+++ b/test/lua/unit/expressions.lua
@@ -60,6 +60,8 @@ context("Rspamd expressions", function()
{'(A) & (B) & ((C) | (D) | (E) | (F))', '(A) (B) (C) (D) (E) (F) |(4) &(3)' },
-- Extra space
{'A & B | ! C', '(C) ! (A) (B) & |'},
+ -- False minus
+ {'A + B + -C', '(A) (B) (-C) +(3)'},
}
for _,c in ipairs(cases) do
test("Expression creation function: " .. c[1], function()