summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorShmuel Zeigerman <solomuz0@gmail.com>2014-08-25 16:49:24 +0300
committerShmuel Zeigerman <solomuz0@gmail.com>2014-08-25 16:49:24 +0300
commit150c251be57c4e569da0f48bf6b01fbca97179fe (patch)
treef7b5015f55dcccd272c74aff961d20b50c8355fc /test
parentd8488e739a503a38519780aed955fe592fcb593f (diff)
downloadlrexlib-150c251be57c4e569da0f48bf6b01fbca97179fe.tar.gz
Remove the ALG_USERETRY (mis)feature.
Diffstat (limited to 'test')
-rw-r--r--test/pcre_sets.lua4
-rw-r--r--test/pcre_sets2.lua6
2 files changed, 5 insertions, 5 deletions
diff --git a/test/pcre_sets.lua b/test/pcre_sets.lua
index 79721b5..b02df78 100644
--- a/test/pcre_sets.lua
+++ b/test/pcre_sets.lua
@@ -78,9 +78,9 @@ local function set_f_gmatch (lib, flg)
{ {"a\0c", "." }, {{"a",N},{"\0",N},{"c",N}} },--nuls in subj
{ {"", pCSV}, {{"",F}} },
{ {"12", pCSV}, {{"12",F}} },
- { {",", pCSV}, {{"", F},{F,""}} },
+ { {",", pCSV}, {{"", F}} },
{ {"12,,45", pCSV}, {{"12",F},{F,""},{F,"45"}} },
- { {",,12,45,,ab,", pCSV}, {{"",F},{F,""},{F,"12"},{F,"45"},{F,""},{F,"ab"},{F,""}} },
+ { {",,12,45,,ab,", pCSV}, {{"",F},{F,"12"},{F,"45"},{F,""},{F,"ab"},{F,""}} },
}
end
diff --git a/test/pcre_sets2.lua b/test/pcre_sets2.lua
index d3be570..2b4e55a 100644
--- a/test/pcre_sets2.lua
+++ b/test/pcre_sets2.lua
@@ -27,7 +27,7 @@ local function set_f_gsub4 (lib, flg)
Func = get_gsub (lib),
--{ s, p, f, n, res1, res2, res3 },
{ {"/* */ */", "%/%*(.*)%*%/", "#" }, {"#", 1, 1} },
- { {"a2c3", ".-", "#" }, {"#########", 9, 9} }, -- test .-
+ { {"a2c3", ".-", "#" }, {"#a#2#c#3#", 5, 5} }, -- test .-
{ {"/**/", "%/%*(.-)%*%/", "#" }, {"#", 1, 1} },
{ {"/* */ */", "%/%*(.-)%*%/", "#" }, {"# */", 1, 1} },
{ {"a2c3", "%d", "#" }, {"a#c#", 2, 2} }, -- test %d
@@ -37,9 +37,9 @@ local function set_f_gsub4 (lib, flg)
{ {"abcd", "\\b", "%1"}, {"abcd", 2, 2} },
{ {"", pCSV,fCSV}, {"[]", 1, 1} },
{ {"123", pCSV,fCSV}, {"[123]", 1, 1} },
- { {",", pCSV,fCSV}, {"[][]", 2, 2} },
+ { {",", pCSV,fCSV}, {"[],", 1, 1} },
{ {"123,,456", pCSV,fCSV}, {"[123][][456]", 3, 3}},
- { {",,123,456,,abc,789,", pCSV,fCSV}, {"[][][123][456][][abc][789][]", 8, 8}},
+ { {",,123,456,,abc,789,", pCSV,fCSV}, {"[],[123][456][][abc][789][]", 7, 7}},
}
-- convert patterns: lua -> pcre
for _, test in ipairs (set) do