summaryrefslogtreecommitdiff
path: root/test/common_sets.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/common_sets.lua')
-rw-r--r--test/common_sets.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/common_sets.lua b/test/common_sets.lua
index 828d077..b259efc 100644
--- a/test/common_sets.lua
+++ b/test/common_sets.lua
@@ -33,7 +33,7 @@ local function set_f_gmatch (lib, flg)
--{ subj patt results }
{ {"ab", lib.new"."}, {{"a",N}, {"b",N} } },
{ {("abcd"):rep(3), "(.)b.(d)"}, {{"a","d"},{"a","d"},{"a","d"}} },
- { {"abcd", ".*" }, {{"abcd",N},{"",N} } },--zero-length match
+ { {"abcd", ".*" }, {{"abcd",N} } },--zero-length match
{ {"abc", "^." }, {{"a",N}} },--anchored pattern
}
end
@@ -45,7 +45,7 @@ local function set_f_count (lib, flg)
--{ subj patt results }
{ {"ab", lib.new"."}, { 2 } },
{ {("abcd"):rep(3), "(.)b.(d)"}, { 3 } },
- { {"abcd", ".*" }, { 2 } },
+ { {"abcd", ".*" }, { 1 } },
{ {"abc", "^." }, { 1 } },
}
end
@@ -229,7 +229,7 @@ local function set_f_gsub4 (lib, flg)
--{ s, p, f, n, res1, res2, res3 },
{ {"a2c3", ".", "#" }, {"####", 4, 4} }, -- test .
{ {"a2c3", ".+", "#" }, {"#", 1, 1} }, -- test .+
- { {"a2c3", ".*", "#" }, {"##", 2, 2} }, -- test .*
+ { {"a2c3", ".*", "#" }, {"#", 1, 1} }, -- test .*
{ {"/* */ */", "\\/\\*(.*)\\*\\/", "#" }, {"#", 1, 1} },
{ {"a2c3", "[0-9]", "#" }, {"a#c#", 2, 2} }, -- test %d
{ {"a2c3", "[^0-9]", "#" }, {"#2#3", 2, 2} }, -- test %D