From: Vsevolod Stakhov Date: Mon, 19 Aug 2019 13:42:06 +0000 (+0100) Subject: [Test] Add test for the new selector X-Git-Tag: 2.0~387 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fd1a18558f1f467d05059b9dc6cf6af52dc22594;p=rspamd.git [Test] Add test for the new selector --- 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'}