diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-18 11:41:38 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-18 11:41:38 +0000 |
commit | 19d825e68e0da0e1ef9100d1c7162ba8c4d4824e (patch) | |
tree | 6e7fa1c05c9c3f5a31061f1797c7d87352ef5dc4 /test/lua | |
parent | 0fb9135156411d047679ca35982edee5b8cc16d8 (diff) | |
download | rspamd-19d825e68e0da0e1ef9100d1c7162ba8c4d4824e.tar.gz rspamd-19d825e68e0da0e1ef9100d1c7162ba8c4d4824e.zip |
2 more test cases.
Diffstat (limited to 'test/lua')
-rw-r--r-- | test/lua/unit/expressions.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lua/unit/expressions.lua b/test/lua/unit/expressions.lua index 69a141f46..7e6310e04 100644 --- a/test/lua/unit/expressions.lua +++ b/test/lua/unit/expressions.lua @@ -37,6 +37,10 @@ context("Rspamd expressions", function() {'((A + B + C + D) > 2) & D', 'A B C D + + + 2 > D &'}, -- Associativity {'A | B | C & D & E', 'A B C D E & & | |'}, + -- More associativity + {'1 | 0 & 0 | 0', '1 0 0 & 0 | |'}, + -- Extra space + {'A & B | ! C', 'A B & C ! |'}, } for _,c in ipairs(cases) do local expr,err = rspamd_expression.create(c[1], |