]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Add test for the new selector
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 19 Aug 2019 13:42:06 +0000 (14:42 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 19 Aug 2019 13:42:06 +0000 (14:42 +0100)
test/lua/unit/selectors.lua

index cb3e61f8f7e1b99b8711da1440e50810bbb1fa6a..f1a06af304df496d611ead215d369bf8f6ea946c 100644 (file)
@@ -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'}