summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorshmuz <shmuz>2008-03-25 15:09:06 +0000
committershmuz <shmuz>2008-03-25 15:09:06 +0000
commit6696cceb65a7356a5c2238001af7913da115a999 (patch)
treec0620b4da7fed335ba7c962de24590e701611f51 /test
parent0a94ffeb101ae22f0760ccf1884ce1c9b94ac2cb (diff)
downloadlrexlib-6696cceb65a7356a5c2238001af7913da115a999.tar.gz
set_f_plainfind: add tests with empty patterns.
Diffstat (limited to 'test')
-rwxr-xr-xtest/common_sets.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/common_sets.lua b/test/common_sets.lua
index 43242a8..38a3eb5 100755
--- a/test/common_sets.lua
+++ b/test/common_sets.lua
@@ -139,6 +139,9 @@ local function set_f_plainfind (lib, flg)
{ {"abcd", "BC"}, {N} }, -- case sensitive
{ {"abcd", "BC", N, true}, {2,3} }, -- case insensitive
{ {"ab\0cd", "b\0c"}, {2,4} }, -- contains nul
+ { {"abcd", "", 1}, {1,0} }, -- empty pattern
+ { {"abcd", "", 5}, {5,4} }, -- empty pattern
+ { {"abcd", "", 6}, {N} }, -- empty pattern
}
end