2014-10-06 19:28:42 +02:00
|
|
|
# This set of tests is run only with the 8-bit library. It tests the POSIX
|
2015-08-18 12:34:05 +02: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 19:28:42 +02:00
|
|
|
|
2015-08-18 12:34:05 +02:00
|
|
|
#forbid_utf
|
2014-10-06 19:28:42 +02:00
|
|
|
#pattern posix
|
|
|
|
|
2017-05-17 19:55:11 +02:00
|
|
|
# Test some invalid options
|
2014-10-06 19:28:42 +02:00
|
|
|
|
2015-08-18 12:34:05 +02:00
|
|
|
/abc/auto_callout
|
2014-10-06 19:28:42 +02:00
|
|
|
|
2015-08-18 12:34:05 +02:00
|
|
|
/abc/
|
|
|
|
abc\=find_limits
|
|
|
|
|
|
|
|
/abc/
|
|
|
|
abc\=partial_hard
|
2017-05-17 19:55:11 +02:00
|
|
|
|
|
|
|
/a(())bc/parens_nest_limit=1
|
|
|
|
|
|
|
|
/abc/allow_surrogate_escapes,max_pattern_length=2
|
2015-08-18 12:34:05 +02:00
|
|
|
|
|
|
|
# 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 18:49:48 +02:00
|
|
|
\= Expect no match
|
2015-08-18 12:34:05 +02:00
|
|
|
The Quick Brown Fox
|
|
|
|
|
|
|
|
/the quick brown fox/i
|
|
|
|
the quick brown fox
|
|
|
|
The Quick Brown Fox
|
|
|
|
|
2015-09-08 19:01:17 +02:00
|
|
|
/(*LF)abc.def/
|
2015-09-16 18:49:48 +02:00
|
|
|
\= Expect no match
|
2015-08-18 12:34:05 +02:00
|
|
|
abc\ndef
|
|
|
|
|
2015-09-08 19:01:17 +02:00
|
|
|
/(*LF)abc$/
|
2015-08-18 12:34:05 +02:00
|
|
|
abc
|
|
|
|
abc\n
|
|
|
|
|
|
|
|
/(abc)\2/
|
|
|
|
|
|
|
|
/(abc\1)/
|
2015-09-16 18:49:48 +02:00
|
|
|
\= Expect no match
|
2015-08-18 12:34:05 +02:00
|
|
|
abc
|
|
|
|
|
|
|
|
/a*(b+)(z)(z)/
|
|
|
|
aaaabbbbzzzz
|
|
|
|
aaaabbbbzzzz\=ovector=0
|
|
|
|
aaaabbbbzzzz\=ovector=1
|
|
|
|
aaaabbbbzzzz\=ovector=2
|
|
|
|
|
2015-09-08 19:01:17 +02:00
|
|
|
/(*ANY)ab.cd/
|
2015-08-18 12:34:05 +02:00
|
|
|
ab-cd
|
|
|
|
ab=cd
|
2015-09-16 18:49:48 +02:00
|
|
|
\= Expect no match
|
2015-08-18 12:34:05 +02:00
|
|
|
ab\ncd
|
|
|
|
|
|
|
|
/ab.cd/s
|
|
|
|
ab-cd
|
|
|
|
ab=cd
|
|
|
|
ab\ncd
|
|
|
|
|
2016-01-31 20:14:15 +01:00
|
|
|
/a(b)c/posix_nosub
|
2015-08-18 12:34:05 +02:00
|
|
|
abc
|
|
|
|
|
2016-01-31 20:14:15 +01:00
|
|
|
/a(?P<name>b)c/posix_nosub
|
2015-08-18 12:34:05 +02:00
|
|
|
abc
|
|
|
|
|
2016-01-31 20:14:15 +01:00
|
|
|
/(a)\1/posix_nosub
|
|
|
|
zaay
|
|
|
|
|
2015-08-18 12:34:05 +02:00
|
|
|
/a?|b?/
|
|
|
|
abc
|
2015-09-16 18:49:48 +02:00
|
|
|
\= Expect no match
|
2015-08-18 12:34:05 +02:00
|
|
|
ddd\=notempty
|
|
|
|
|
|
|
|
/\w+A/
|
|
|
|
CDAAAAB
|
|
|
|
|
|
|
|
/\w+A/ungreedy
|
|
|
|
CDAAAAB
|
|
|
|
|
|
|
|
/\Biss\B/I,aftertext
|
|
|
|
Mississippi
|
|
|
|
|
|
|
|
/abc/\
|
|
|
|
|
|
|
|
"(?(?C)"
|
|
|
|
|
2016-02-13 16:30:29 +01:00
|
|
|
"(?(?C))"
|
|
|
|
|
2015-10-07 19:32:48 +02:00
|
|
|
/abcd/substitute_extended
|
|
|
|
|
2015-10-30 18:17:40 +01:00
|
|
|
/\[A]{1000000}**/expand,regerror_buffsize=31
|
|
|
|
|
|
|
|
/\[A]{1000000}**/expand,regerror_buffsize=32
|
|
|
|
|
2016-10-23 18:18:15 +02:00
|
|
|
//posix_nosub
|
|
|
|
\=offset=70000
|
|
|
|
|
2017-06-03 18:42:58 +02:00
|
|
|
/^d(e)$/posix
|
|
|
|
acdef\=posix_startend=2:4
|
|
|
|
acde\=posix_startend=2
|
|
|
|
\= Expect no match
|
|
|
|
acdef
|
|
|
|
acdef\=posix_startend=2
|
|
|
|
|
|
|
|
/^a\x{00}b$/posix
|
|
|
|
a\x{00}b\=posix_startend=0:3
|
|
|
|
|
2017-06-05 20:25:47 +02:00
|
|
|
/"A" 00 "B"/hex
|
|
|
|
A\x{00}B\=posix_startend=0:3
|
|
|
|
|
|
|
|
/ABC/use_length
|
|
|
|
ABC
|
|
|
|
|
2017-06-15 18:41:44 +02:00
|
|
|
/a\b(c/literal,posix
|
|
|
|
a\\b(c
|
|
|
|
|
|
|
|
/a\b(c/literal,posix,dotall
|
|
|
|
|
2018-02-19 15:49:42 +01:00
|
|
|
/((a)(b)?(c))/posix
|
|
|
|
123ace
|
|
|
|
123ace\=posix_startend=2:6
|
|
|
|
|
2021-11-30 17:34:39 +01:00
|
|
|
//posix
|
|
|
|
\= Expect errors
|
|
|
|
\=null_subject
|
|
|
|
abc\=null_subject
|
|
|
|
|
2015-08-18 12:34:05 +02:00
|
|
|
# End of testdata/testinput18
|