Verified Commit 91f72535 authored by Camil Staps's avatar Camil Staps 🚀

Clean up last parts of testdata

parent 4031e201
......@@ -14,7 +14,7 @@ EXE:=example test
all: $(EXE)
run_test: test
diff -y testdata/testoutput1 <(./test < testdata/testinput1) | grep -v -e '^#' | less
diff -y testdata/testoutput1 <(./test -nr < testdata/testinput1) | grep -v -e '^#' | less
$(EXE): %: %.icl $(DEPS)
$(CLM) $(CLMFLAGS) $@ -o $@
......
# This set of tests is for features that are compatible with all versions of
# Perl >= 5.10, in non-UTF mode. It should run clean for the 8-bit, 16-bit, and
# 32-bit PCRE libraries, and also using the perltest.pl script.
#forbid_utf
#newline_default lf any anycrlf
#perltest
......@@ -326,7 +326,7 @@
# a+ Z0+\x08\n\x1d\x12
/^[.^$|()*+?{,}]+/
.^\$(*+)|{?,?}
.^$(*+)|{?,?}
/^a*\w/
z
......@@ -413,26 +413,26 @@
# 12\n34
# 12\r34
/\w+(?=\t)/
the quick brown\t fox
/foo(?!bar)(.*)/
foobar is foolish see?
/(?:(?!foo)...|^.{0,2})bar(.*)/
foobar crowbar etc
barrel
2barrel
A barrel
/^(\D*)(?=\d)(?!123)/
abc456
\= Expect no match
abc123
/^1234(?# test newlines
inside)/
1234
#/\w+(?=\t)/
# the quick brown\t fox
#
#/foo(?!bar)(.*)/
# foobar is foolish see?
#
#/(?:(?!foo)...|^.{0,2})bar(.*)/
# foobar crowbar etc
# barrel
# 2barrel
# A barrel
#
#/^(\D*)(?=\d)(?!123)/
# abc456
#\= Expect no match
# abc123
#
#/^1234(?# test newlines
# inside)/
# 1234
#/^1234 #comment in extended re
# /x
......@@ -1269,85 +1269,85 @@
#\= Expect no match
# The quick brown fox
/abc\0def\00pqr\000xyz\0000AB/
abc\0def\00pqr\000xyz\0000AB
abc456 abc\0def\00pqr\000xyz\0000ABCDE
/abc\x0def\x00pqr\x000xyz\x0000AB/
abc\x0def\x00pqr\x000xyz\x0000AB
abc456 abc\x0def\x00pqr\x000xyz\x0000ABCDE
/^[\000-\037]/
\0A
\01B
\037C
/\0*/
\0\0\0\0
/A\x0{2,3}Z/
The A\x0\x0Z
An A\0\x0\0Z
\= Expect no match
A\0Z
A\0\x0\0\x0Z
/^(cow|)\1(bell)/
cowcowbell
bell
\= Expect no match
cowbell
/^\s/
\040abc
\x0cabc
\nabc
\rabc
\tabc
\= Expect no match
abc
#/abc\0def\00pqr\000xyz\0000AB/
# abc\0def\00pqr\000xyz\0000AB
# abc456 abc\0def\00pqr\000xyz\0000ABCDE
#
#/abc\x0def\x00pqr\x000xyz\x0000AB/
# abc\x0def\x00pqr\x000xyz\x0000AB
# abc456 abc\x0def\x00pqr\x000xyz\x0000ABCDE
#
#/^[\000-\037]/
# \0A
# \01B
# \037C
#
#/\0*/
# \0\0\0\0
#
#/A\x0{2,3}Z/
# The A\x0\x0Z
# An A\0\x0\0Z
#\= Expect no match
# A\0Z
# A\0\x0\0\x0Z
#
#/^(cow|)\1(bell)/
# cowcowbell
# bell
#\= Expect no match
# cowbell
#
#/^\s/
# \040abc
# \x0cabc
# \nabc
# \rabc
# \tabc
#\= Expect no match
# abc
#/^a b
# c/x
# abc
/^(a|)\1*b/
ab
aaaab
b
\= Expect no match
acb
/^(a|)\1+b/
aab
aaaab
b
\= Expect no match
ab
/^(a|)\1?b/
ab
aab
b
\= Expect no match
acb
/^(a|)\1{2}b/
aaab
b
\= Expect no match
ab
aab
aaaab
/^(a|)\1{2,3}b/
aaab
aaaab
b
\= Expect no match
ab
aab
aaaaab
#/^(a|)\1*b/
# ab
# aaaab
# b
#\= Expect no match
# acb
#
#/^(a|)\1+b/
# aab
# aaaab
# b
#\= Expect no match
# ab
#
#/^(a|)\1?b/
# ab
# aab
# b
#\= Expect no match
# acb
#
#/^(a|)\1{2}b/
# aaab
# b
#\= Expect no match
# ab
# aab
# aaaab
#
#/^(a|)\1{2,3}b/
# aaab
# aaaab
# b
#\= Expect no match
# ab
# aab
# aaaaab
/ab{1,3}bc/
abbbbc
......@@ -1407,9 +1407,9 @@
#\= Expect no match
# abc\ndef
/(?:b)|(?::+)/
b::c
c::b
#/(?:b)|(?::+)/
# b::c
# c::b
/[-az]+/
az-
......@@ -1421,10 +1421,10 @@
\= Expect no match
b
/[a\-z]+/
a-z
\= Expect no match
b
#/[a\-z]+/
# a-z
#\= Expect no match
# b
/[a-z]+/
abcdxyz
......@@ -1452,46 +1452,46 @@
# ABCabc
# abcABC
/abc$/
abc
abc\n
\= Expect no match
abc\ndef
/(abc)\123/
abc\x53
/(abc)\223/
abc\x93
/(abc)\323/
abc\xd3
/(abc)\100/
abc\x40
abc\100
/(abc)\1000/
abc\x400
abc\x40\x30
abc\1000
abc\100\x30
abc\100\060
abc\100\60
/^(A)(B)(C)(D)(E)(F)(G)(H)(I)\8\9$/
ABCDEFGHIHI
/^[A\8B\9C]+$/
A8B9C
\= Expect no match
A8B9C\x00
/(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)\12\123/
abcdefghijkllS
/(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)\12\123/
abcdefghijk\12S
#/abc$/
# abc
# abc\n
#\= Expect no match
# abc\ndef
#
#/(abc)\123/
# abc\x53
#
#/(abc)\223/
# abc\x93
#
#/(abc)\323/
# abc\xd3
#
#/(abc)\100/
# abc\x40
# abc\100
#
#/(abc)\1000/
# abc\x400
# abc\x40\x30
# abc\1000
# abc\100\x30
# abc\100\060
# abc\100\60
#
#/^(A)(B)(C)(D)(E)(F)(G)(H)(I)\8\9$/
# ABCDEFGHIHI
#
#/^[A\8B\9C]+$/
# A8B9C
#\= Expect no match
# A8B9C\x00
#
#/(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)\12\123/
# abcdefghijkllS
#
#/(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)\12\123/
# abcdefghijk\12S
/a{0}bc/
bc
......@@ -1499,69 +1499,69 @@
/(a|(bc)){0,0}?xyz/
xyz
/abc[\10]de/
abc\010de
/abc[\1]de/
abc\1de
/(abc)[\1]de/
abc\1de
/(?s)a.b/
a\nb
#/abc[\10]de/
# abc\010de
#
#/abc[\1]de/
# abc\1de
#
#/(abc)[\1]de/
# abc\1de
#
#/(?s)a.b/
# a\nb
/^([^a])([^\b])([^c]*)([^d]{3,4})/
baNOTccccd
baNOTcccd
baNOTccd
bacccd
\= Expect no match
anything
b\bc
baccd
#/^([^a])([^\b])([^c]*)([^d]{3,4})/
# baNOTccccd
# baNOTcccd
# baNOTccd
# bacccd
#\= Expect no match
# anything
# b\bc
# baccd
/[^a]/
Abc
#/[^a]/i
# Abc
/[^a]+/
AAAaAbc
#/[^a]+/i
# AAAaAbc
/[^a]+/
bbb\nccc
#/[^a]+/
# bbb\nccc
/[^k]$/
abc
\= Expect no match
abk
abk
/[^k]{2,3}$/
abc
kbc
kabc
kabc
\= Expect no match
abk
akb
akk
akk
/^\d{8,}\@.+[^k]$/
12345678\@a.b.c.d
123456789\@x.y.z
/^\d{8,}@.+[^k]$/
12345678@a.b.c.d
123456789@x.y.z
\= Expect no match
12345678\@x.y.uk
1234567\@a.b.c.d
12345678@x.y.uk
1234567@a.b.c.d
/(a)\1{8,}/
aaaaaaaaa
aaaaaaaaaa
\= Expect no match
aaaaaaa
#/(a)\1{8,}/
# aaaaaaaaa
# aaaaaaaaaa
#\= Expect no match
# aaaaaaa
/[^a]/
aaaabcd
......@@ -1579,8 +1579,8 @@
# aaaabcd
# aaAabcd
/\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040\041\042\043\044\045\046\047\050\051\052\053\054\055\056\057\060\061\062\063\064\065\066\067\070\071\072\073\074\075\076\077\100\101\102\103\104\105\106\107\110\111\112\113\114\115\116\117\120\121\122\123\124\125\126\127\130\131\132\133\134\135\136\137\140\141\142\143\144\145\146\147\150\151\152\153\154\155\156\157\160\161\162\163\164\165\166\167\170\171\172\173\174\175\176\177\200\201\202\203\204\205\206\207\210\211\212\213\214\215\216\217\220\221\222\223\224\225\226\227\230\231\232\233\234\235\236\237\240\241\242\243\244\245\246\247\250\251\252\253\254\255\256\257\260\261\262\263\264\265\266\267\270\271\272\273\274\275\276\277\300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327\330\331\332\333\334\335\336\337\340\341\342\343\344\345\346\347\350\351\352\353\354\355\356\357\360\361\362\363\364\365\366\367\370\371\372\373\374\375\376\377/
\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040\041\042\043\044\045\046\047\050\051\052\053\054\055\056\057\060\061\062\063\064\065\066\067\070\071\072\073\074\075\076\077\100\101\102\103\104\105\106\107\110\111\112\113\114\115\116\117\120\121\122\123\124\125\126\127\130\131\132\133\134\135\136\137\140\141\142\143\144\145\146\147\150\151\152\153\154\155\156\157\160\161\162\163\164\165\166\167\170\171\172\173\174\175\176\177\200\201\202\203\204\205\206\207\210\211\212\213\214\215\216\217\220\221\222\223\224\225\226\227\230\231\232\233\234\235\236\237\240\241\242\243\244\245\246\247\250\251\252\253\254\255\256\257\260\261\262\263\264\265\266\267\270\271\272\273\274\275\276\277\300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327\330\331\332\333\334\335\336\337\340\341\342\343\344\345\346\347\350\351\352\353\354\355\356\357\360\361\362\363\364\365\366\367\370\371\372\373\374\375\376\377
#/\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040\041\042\043\044\045\046\047\050\051\052\053\054\055\056\057\060\061\062\063\064\065\066\067\070\071\072\073\074\075\076\077\100\101\102\103\104\105\106\107\110\111\112\113\114\115\116\117\120\121\122\123\124\125\126\127\130\131\132\133\134\135\136\137\140\141\142\143\144\145\146\147\150\151\152\153\154\155\156\157\160\161\162\163\164\165\166\167\170\171\172\173\174\175\176\177\200\201\202\203\204\205\206\207\210\211\212\213\214\215\216\217\220\221\222\223\224\225\226\227\230\231\232\233\234\235\236\237\240\241\242\243\244\245\246\247\250\251\252\253\254\255\256\257\260\261\262\263\264\265\266\267\270\271\272\273\274\275\276\277\300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327\330\331\332\333\334\335\336\337\340\341\342\343\344\345\346\347\350\351\352\353\354\355\356\357\360\361\362\363\364\365\366\367\370\371\372\373\374\375\376\377/
# \000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040\041\042\043\044\045\046\047\050\051\052\053\054\055\056\057\060\061\062\063\064\065\066\067\070\071\072\073\074\075\076\077\100\101\102\103\104\105\106\107\110\111\112\113\114\115\116\117\120\121\122\123\124\125\126\127\130\131\132\133\134\135\136\137\140\141\142\143\144\145\146\147\150\151\152\153\154\155\156\157\160\161\162\163\164\165\166\167\170\171\172\173\174\175\176\177\200\201\202\203\204\205\206\207\210\211\212\213\214\215\216\217\220\221\222\223\224\225\226\227\230\231\232\233\234\235\236\237\240\241\242\243\244\245\246\247\250\251\252\253\254\255\256\257\260\261\262\263\264\265\266\267\270\271\272\273\274\275\276\277\300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327\330\331\332\333\334\335\336\337\340\341\342\343\344\345\346\347\350\351\352\353\354\355\356\357\360\361\362\363\364\365\366\367\370\371\372\373\374\375\376\377
/P[^*]TAIRE[^*]{1,6}?LL/
xxxxxxxxxxxPSTAIREISLLxxxxxxxxx
......@@ -1592,31 +1592,31 @@
1.230003938
1.875000282
1.235
/(\.\d\d((?=0)|\d(?=\d)))/
1.230003938
1.875000282
\= Expect no match
1.235
/a(?)b/
ab
#/\b(foo)\s+(\w+)/i
# Food is on the foo table
/foo(.*)bar/
The food is under the bar in the barn.
/foo(.*?)bar/
The food is under the bar in the barn.
/(.*)(\d*)/
I have 2 numbers: 53147
/(.*)(\d+)/
I have 2 numbers: 53147
/(.*?)(\d*)/
I have 2 numbers: 53147
......@@ -1637,12 +1637,12 @@
/^\D*(?!123)/
ABC123
/^(\D*)(?=\d)(?!123)/
ABC445
\= Expect no match
ABC123
/^[W-]46]/
W46]789
-46]789
......@@ -1652,7 +1652,7 @@
42
[abcd]
]abcd[
/^[W-\]46]/
W46]789
Wall
......@@ -1665,8 +1665,8 @@
\= Expect no match
-46]789
well
/\d\d\/\d\d\/\d\d\d\d/
/\d\d/\d\d/\d\d\d\d/
01/01/2000
/word (?:[a-zA-Z0-9]+ ){0,10}otherword/
......@@ -1733,11 +1733,11 @@
\= Expect no match
bcd
/.*\.gif/
borfle\nbib.gif\nno
/.{0,}\.gif/
borfle\nbib.gif\nno
#/.*\.gif/
# borfle\nbib.gif\nno
#
#/.{0,}\.gif/
# borfle\nbib.gif\nno
#/.*\.gif/m
# borfle\nbib.gif\nno
......@@ -1747,9 +1747,9 @@
#
#/.*\.gif/ms
# borfle\nbib.gif\nno
/.*$/
borfle\nbib.gif\nno
#/.*$/
# borfle\nbib.gif\nno
#/.*$/m
# borfle\nbib.gif\nno
......@@ -1759,9 +1759,9 @@
#
#/.*$/ms
# borfle\nbib.gif\nno
/.*$/
borfle\nbib.gif\nno\n
#/.*$/
# borfle\nbib.gif\nno\n
#/.*$/m
# borfle\nbib.gif\nno\n
......@@ -1771,12 +1771,12 @@
#
#/.*$/ms
# borfle\nbib.gif\nno\n
/(.*X|^B)/
abcde\n1234Xyz
BarFoo
\= Expect no match
abcde\nBar
#/(.*X|^B)/
# abcde\n1234Xyz
# BarFoo
#\= Expect no match
# abcde\nBar
#/(.*X|^B)/m
# abcde\n1234Xyz
......@@ -1794,52 +1794,52 @@
# BarFoo
# abcde\nBar
/(?s)(.*X|^B)/
abcde\n1234Xyz
BarFoo
\= Expect no match
abcde\nBar
/(?s:.*X|^B)/
abcde\n1234Xyz
BarFoo
\= Expect no match
abcde\nBar
/^.*B/
\= Expect no match
abc\nB
/(?s)^.*B/
abc\nB
/(?m)^.*B/
abc\nB
/(?ms)^.*B/
abc\nB
/(?ms)^B/
abc\nB
#/(?s)(.*X|^B)/
# abcde\n1234Xyz
# BarFoo
#\= Expect no match
# abcde\nBar
#
#/(?s:.*X|^B)/
# abcde\n1234Xyz
# BarFoo
#\= Expect no match
# abcde\nBar
#
#/^.*B/
#\= Expect no match
# abc\nB
/(?s)B$/
B\n
#/(?s)^.*B/
# abc\nB
#
#/(?m)^.*B/
# abc\nB
#
#/(?ms)^.*B/
# abc\nB
#
#/(?ms)^B/
# abc\nB
#
#/(?s)B$/
# B\n
/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/
123456654321
/^\d\d\d\d\d\d\d\d\d\d\d\d/
123456654321
/^[\d][\d][\d][\d][\d][\d][\d][\d][\d][\d][\d][\d]/
123456654321
/^[abc]{12}/
abcabcabcabc
/^[a-c]{12}/
abcabcabcabc
/^(a|b|c){12}/
abcabcabcabc
......@@ -1857,7 +1857,7 @@
abe
\= Expect no match
abcde
/ab(c){0,0}d/
abd