diff options
author | shmuz <shmuz> | 2008-03-25 15:09:06 +0000 |
---|---|---|
committer | shmuz <shmuz> | 2008-03-25 15:09:06 +0000 |
commit | 6696cceb65a7356a5c2238001af7913da115a999 (patch) | |
tree | c0620b4da7fed335ba7c962de24590e701611f51 /test | |
parent | 0a94ffeb101ae22f0760ccf1884ce1c9b94ac2cb (diff) | |
download | lrexlib-6696cceb65a7356a5c2238001af7913da115a999.tar.gz |
set_f_plainfind: add tests with empty patterns.
Diffstat (limited to 'test')
-rwxr-xr-x | test/common_sets.lua | 3 |
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 |