commit fd1a185: [Test] Add test for the new selector

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Aug 19 15:56:10 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-08-19 14:42:06 +0100
URL: https://github.com/rspamd/rspamd/commit/fd1a18558f1f467d05059b9dc6cf6af52dc22594

[Test] Add test for the new selector

---
 test/lua/unit/selectors.lua | 4 ++++
 1 file changed, 4 insertions(+)

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'}


More information about the Commits mailing list