aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-23 17:51:19 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-23 17:51:19 +0100
commit0de3deeadb49872e4b2eecf74faa2741d45a2bab (patch)
treebc2400ef817818076f214512122d54383b8eddd9 /test
parent01329335b7941502da10c71ead38b9c334804c84 (diff)
downloadrspamd-0de3deeadb49872e4b2eecf74faa2741d45a2bab.tar.gz
rspamd-0de3deeadb49872e4b2eecf74faa2741d45a2bab.zip
[Feature] Lua_selectors: Add `words` selector
Diffstat (limited to 'test')
-rw-r--r--test/lua/unit/selectors.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/lua/unit/selectors.lua b/test/lua/unit/selectors.lua
index b5152e347..2fb839be1 100644
--- a/test/lua/unit/selectors.lua
+++ b/test/lua/unit/selectors.lua
@@ -69,7 +69,7 @@ context("Selectors test", function()
["digest"] = {
selector = "digest",
- expect = {"1649c0cbbd127660095d4f44e15e8b60"}
+ expect = {"f46ccafe448fe4d7b46076938749695e"}
},
["user"] = {
@@ -267,6 +267,10 @@ context("Selectors test", function()
selector = "list('key', 'key1', 'key2', 'key3').apply_map(test_map).uniq",
expect = {{'value1', 'value'}}
},
+ ["words"] = {
+ selector = "words('norm')",
+ expect = {{'hello', 'world', 'mail', 'me'}}
+ },
}
for case_name, case in pairs(cases) do
@@ -295,7 +299,7 @@ Content-Type: multipart/alternative;
--_000_6be055295eab48a5af7ad4022f33e2d0_
Content-Type: text/plain; charset="utf-8"
-Content-Transfer-Encoding: base64
+Content-Transfer-Encoding: 7bit
Hello world