diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-17 20:59:48 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-17 20:59:48 +0100 |
commit | 298432d784d1d2d56c223dd75678fe36fef14550 (patch) | |
tree | 0a3d09bf7b4445e8b2ffdeed4c6aace1a787004f /test/lua/unit | |
parent | 95645818062dffd97fc1f71f073501d11c49492f (diff) | |
download | rspamd-298432d784d1d2d56c223dd75678fe36fef14550.tar.gz rspamd-298432d784d1d2d56c223dd75678fe36fef14550.zip |
[Fix] Fix false - operation
Diffstat (limited to 'test/lua/unit')
-rw-r--r-- | test/lua/unit/expressions.lua | 2 |
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() |