aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-11-19 11:34:03 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-11-19 11:34:03 +0000
commitff7c63b24d8e20fa4c75e408a5d29c44b154819f (patch)
tree27b916ae7e2ba71e665a85bb441cb91fb4d9c7bf /test
parent550c1905fe920aa857550317edd8e2961f087978 (diff)
downloadrspamd-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.lua3
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