diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-23 18:02:16 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-23 18:02:16 +0100 |
commit | 2393156481374420919438468e2eda7725607635 (patch) | |
tree | b0b3914bf651ecb9736bfc4ac1a7c7d4f8e0399d /test/lua | |
parent | 0de3deeadb49872e4b2eecf74faa2741d45a2bab (diff) | |
download | rspamd-2393156481374420919438468e2eda7725607635.tar.gz rspamd-2393156481374420919438468e2eda7725607635.zip |
[Minor] Lua_selectors: Allow to index numeric arrays in selectors
Diffstat (limited to 'test/lua')
-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 2fb839be1..cb3e61f8f 100644 --- a/test/lua/unit/selectors.lua +++ b/test/lua/unit/selectors.lua @@ -271,6 +271,10 @@ context("Selectors test", function() selector = "words('norm')", expect = {{'hello', 'world', 'mail', 'me'}} }, + ["words_full"] = { + selector = "words('full'):2", + expect = {{'hello', 'world', '', 'mail', 'me'}} + }, } for case_name, case in pairs(cases) do |