aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-19 14:42:06 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-19 14:42:06 +0100
commitfd1a18558f1f467d05059b9dc6cf6af52dc22594 (patch)
tree5f2dc1a818a72d342e7b416689bd5a91e94a6150 /test
parent0c8dcea94a3999d7a008afa37eb740ec431defc3 (diff)
downloadrspamd-fd1a18558f1f467d05059b9dc6cf6af52dc22594.tar.gz
rspamd-fd1a18558f1f467d05059b9dc6cf6af52dc22594.zip
[Test] Add test for the new selector
Diffstat (limited to 'test')
-rw-r--r--test/lua/unit/selectors.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lua/unit/selectors.lua b/test/lua/unit/selectors.lua
index cb3e61f8f..f1a06af30 100644
--- a/test/lua/unit/selectors.lua
+++ b/test/lua/unit/selectors.lua
@@ -251,6 +251,10 @@ context("Selectors test", function()
selector = "id('key').filter_map(test_map)",
expect = {'key'}
},
+ ["map except"] = {
+ selector = "list('key', 'key1', 'key2', 'key3', 'key4').except_map(test_map)",
+ expect = {{'key2', 'key4'}}
+ },
["map apply"] = {
selector = "id('key').apply_map(test_map)",
expect = {'value'}