2014-10-06 13:28:42 -04:00
|
|
|
# This set of tests is run only with the 8-bit library. It tests the POSIX
|
2015-08-18 06:34:05 -04:00
|
|
|
# interface, which is supported only with the 8-bit library. This test should
|
|
|
|
# not be run with JIT (which is not available for the POSIX interface).
|
2014-10-06 13:28:42 -04:00
|
|
|
|
2015-08-18 06:34:05 -04:00
|
|
|
#forbid_utf
|
2014-10-06 13:28:42 -04:00
|
|
|
#pattern posix
|
|
|
|
|
2015-08-18 06:34:05 -04:00
|
|
|
# Test invalid options
|
2014-10-06 13:28:42 -04:00
|
|
|
|
2015-08-18 06:34:05 -04:00
|
|
|
/abc/auto_callout
|
2014-10-06 13:28:42 -04:00
|
|
|
|
2015-08-18 06:34:05 -04:00
|
|
|
/abc/
|
|
|
|
abc\=find_limits
|
|
|
|
|
|
|
|
/abc/
|
|
|
|
abc\=partial_hard
|
|
|
|
|
|
|
|
# Real tests
|
|
|
|
|
|
|
|
/abc/
|
|
|
|
abc
|
|
|
|
|
|
|
|
/^abc|def/
|
|
|
|
abcdef
|
|
|
|
abcdef\=notbol
|
|
|
|
|
|
|
|
/.*((abc)$|(def))/
|
|
|
|
defabc
|
|
|
|
defabc\=noteol
|
|
|
|
|
|
|
|
/the quick brown fox/
|
|
|
|
the quick brown fox
|
2015-09-16 12:49:48 -04:00
|
|
|
\= Expect no match
|
2015-08-18 06:34:05 -04:00
|
|
|
The Quick Brown Fox
|
|
|
|
|
|
|
|
/the quick brown fox/i
|
|
|
|
the quick brown fox
|
|
|
|
The Quick Brown Fox
|
|
|
|
|
2015-09-08 13:01:17 -04:00
|
|
|
/(*LF)abc.def/
|
2015-09-16 12:49:48 -04:00
|
|
|
\= Expect no match
|
2015-08-18 06:34:05 -04:00
|
|
|
abc\ndef
|
|
|
|
|
2015-09-08 13:01:17 -04:00
|
|
|
/(*LF)abc$/
|
2015-08-18 06:34:05 -04:00
|
|
|
abc
|
|
|
|
abc\n
|
|
|
|
|
|
|
|
/(abc)\2/
|
|
|
|
|
|
|
|
/(abc\1)/
|
2015-09-16 12:49:48 -04:00
|
|
|
\= Expect no match
|
2015-08-18 06:34:05 -04:00
|
|
|
abc
|
|
|
|
|
|
|
|
/a*(b+)(z)(z)/
|
|
|
|
aaaabbbbzzzz
|
|
|
|
aaaabbbbzzzz\=ovector=0
|
|
|
|
aaaabbbbzzzz\=ovector=1
|
|
|
|
aaaabbbbzzzz\=ovector=2
|
|
|
|
|
2015-09-08 13:01:17 -04:00
|
|
|
/(*ANY)ab.cd/
|
2015-08-18 06:34:05 -04:00
|
|
|
ab-cd
|
|
|
|
ab=cd
|
2015-09-16 12:49:48 -04:00
|
|
|
\= Expect no match
|
2015-08-18 06:34:05 -04:00
|
|
|
ab\ncd
|
|
|
|
|
|
|
|
/ab.cd/s
|
|
|
|
ab-cd
|
|
|
|
ab=cd
|
|
|
|
ab\ncd
|
|
|
|
|
2016-01-31 14:14:15 -05:00
|
|
|
/a(b)c/posix_nosub
|
2015-08-18 06:34:05 -04:00
|
|
|
abc
|
|
|
|
|
2016-01-31 14:14:15 -05:00
|
|
|
/a(?P<name>b)c/posix_nosub
|
2015-08-18 06:34:05 -04:00
|
|
|
abc
|
|
|
|
|
2016-01-31 14:14:15 -05:00
|
|
|
/(a)\1/posix_nosub
|
|
|
|
zaay
|
|
|
|
|
2015-08-18 06:34:05 -04:00
|
|
|
/a?|b?/
|
|
|
|
abc
|
2015-09-16 12:49:48 -04:00
|
|
|
\= Expect no match
|
2015-08-18 06:34:05 -04:00
|
|
|
ddd\=notempty
|
|
|
|
|
|
|
|
/\w+A/
|
|
|
|
CDAAAAB
|
|
|
|
|
|
|
|
/\w+A/ungreedy
|
|
|
|
CDAAAAB
|
|
|
|
|
|
|
|
/\Biss\B/I,aftertext
|
|
|
|
Mississippi
|
|
|
|
|
|
|
|
/abc/\
|
|
|
|
|
|
|
|
"(?(?C)"
|
|
|
|
|
2015-10-07 13:32:48 -04:00
|
|
|
/abcd/substitute_extended
|
|
|
|
|
2015-10-30 13:17:40 -04:00
|
|
|
/\[A]{1000000}**/expand,regerror_buffsize=31
|
|
|
|
|
|
|
|
/\[A]{1000000}**/expand,regerror_buffsize=32
|
|
|
|
|
2015-08-18 06:34:05 -04:00
|
|
|
# End of testdata/testinput18
|