diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-11-19 11:34:03 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-11-19 11:34:03 +0000 |
commit | ff7c63b24d8e20fa4c75e408a5d29c44b154819f (patch) | |
tree | 27b916ae7e2ba71e665a85bb441cb91fb4d9c7bf /test | |
parent | 550c1905fe920aa857550317edd8e2961f087978 (diff) | |
download | rspamd-ff7c63b24d8e20fa4c75e408a5d29c44b154819f.tar.gz rspamd-ff7c63b24d8e20fa4c75e408a5d29c44b154819f.zip |
[Minor] Fix some more lua compat issues with text:find
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/unit/rspamd_text.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lua/unit/rspamd_text.lua b/test/lua/unit/rspamd_text.lua index 3e6d0fff7..d643d9e63 100644 --- a/test/lua/unit/rspamd_text.lua +++ b/test/lua/unit/rspamd_text.lua @@ -39,6 +39,9 @@ context("Rspamd_text:find() test", function() {{'foobarfoo', 'rfoo'}, {6, 9}}, {{'foo', 'bar'}, nil}, {{'x', 'xxxx'}, nil}, + {{'', ''}, {1, 0}}, + {{'', '_'}, nil}, + {{'x', ''}, {1, 0}}, } for _, case in ipairs(cases) do |