diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-19 14:42:06 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-19 14:42:06 +0100 |
commit | fd1a18558f1f467d05059b9dc6cf6af52dc22594 (patch) | |
tree | 5f2dc1a818a72d342e7b416689bd5a91e94a6150 /test | |
parent | 0c8dcea94a3999d7a008afa37eb740ec431defc3 (diff) | |
download | rspamd-fd1a18558f1f467d05059b9dc6cf6af52dc22594.tar.gz rspamd-fd1a18558f1f467d05059b9dc6cf6af52dc22594.zip |
[Test] Add test for the new selector
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/unit/selectors.lua | 4 |
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'} |