From 6696cceb65a7356a5c2238001af7913da115a999 Mon Sep 17 00:00:00 2001 From: shmuz Date: Tue, 25 Mar 2008 15:09:06 +0000 Subject: set_f_plainfind: add tests with empty patterns. --- test/common_sets.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') 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 -- cgit v1.2.1