aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-11-18 17:50:19 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-11-18 17:50:19 +0000
commit87ef9084fbc26218762f7b9a90522507543d142a (patch)
treea99d8c1b90803166a10ec872467a47adf9076e35 /test/lua
parentd6de1382a4e2c0ff723f1ee65c8e64c81fb0a76c (diff)
downloadrspamd-87ef9084fbc26218762f7b9a90522507543d142a.tar.gz
rspamd-87ef9084fbc26218762f7b9a90522507543d142a.zip
[Fix] Fix off-by-one with init check
Diffstat (limited to 'test/lua')
-rw-r--r--test/lua/unit/rspamd_text.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lua/unit/rspamd_text.lua b/test/lua/unit/rspamd_text.lua
index 4e3a5e8e7..3e6d0fff7 100644
--- a/test/lua/unit/rspamd_text.lua
+++ b/test/lua/unit/rspamd_text.lua
@@ -37,6 +37,8 @@ context("Rspamd_text:find() test", function()
{{'foobarfoo', 'bar'}, {4, 6}},
{{'foobarfoo', 'baz'}, nil},
{{'foobarfoo', 'rfoo'}, {6, 9}},
+ {{'foo', 'bar'}, nil},
+ {{'x', 'xxxx'}, nil},
}
for _, case in ipairs(cases) do