2015-11-14 08:22:34 -05:00
|
|
|
# There are two sorts of patterns in this test. A number of them are
|
|
|
|
# representative patterns whose lengths and offsets are checked. This is just a
|
|
|
|
# doublecheck test to ensure the sizes don't go horribly wrong when something
|
|
|
|
# is changed. The operation of these patterns is checked in other tests.
|
|
|
|
#
|
|
|
|
# This file also contains tests whose output varies with code unit size and/or
|
|
|
|
# link size. Unicode support is required for these tests. There are separate
|
|
|
|
# output files for each code unit size and link size.
|
2014-08-05 12:51:32 -04:00
|
|
|
|
|
|
|
#pattern fullbincode,memory
|
|
|
|
|
|
|
|
/((?i)b)/
|
|
|
|
|
|
|
|
/(?s)(.*X|^B)/
|
|
|
|
|
|
|
|
/(?s:.*X|^B)/
|
|
|
|
|
|
|
|
/^[[:alnum:]]/
|
|
|
|
|
|
|
|
/#/Ix
|
|
|
|
|
|
|
|
/a#/Ix
|
|
|
|
|
|
|
|
/x?+/
|
|
|
|
|
|
|
|
/x++/
|
|
|
|
|
|
|
|
/x{1,3}+/
|
|
|
|
|
|
|
|
/(x)*+/
|
|
|
|
|
|
|
|
/^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/
|
|
|
|
|
|
|
|
"8J\$WE\<\.rX\+ix\[d1b\!H\#\?vV0vrK\:ZH1\=2M\>iV\;\?aPhFB\<\*vW\@QW\@sO9\}cfZA\-i\'w\%hKd6gt1UJP\,15_\#QY\$M\^Mss_U\/\]\&LK9\[5vQub\^w\[KDD\<EjmhUZ\?\.akp2dF\>qmj\;2\}YWFdYx\.Ap\]hjCPTP\(n28k\+3\;o\&WXqs\/gOXdr\$\:r\'do0\;b4c\(f_Gr\=\"\\4\)\[01T7ajQJvL\$W\~mL_sS\/4h\:x\*\[ZN\=KLs\&L5zX\/\/\>it\,o\:aU\(\;Z\>pW\&T7oP\'2K\^E\:x9\'c\[\%z\-\,64JQ5AeH_G\#KijUKghQw\^\\vea3a\?kka_G\$8\#\`\*kynsxzBLru\'\]k_\[7FrVx\}\^\=\$blx\>s\-N\%j\;D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|
|
|
|
/[^a]/utf
|
|
|
|
|
|
|
|
/[^\xaa]/
|
|
|
|
|
|
|
|
/[^\xaa]/utf
|
|
|
|
|
|
|
|
#pattern -memory
|
|
|
|
|
|
|
|
/[^\d]/utf,ucp
|
|
|
|
|
|
|
|
/[[:^alpha:][:^cntrl:]]+/utf,ucp
|
|
|
|
|
|
|
|
/[[:^cntrl:][:^alpha:]]+/utf,ucp
|
|
|
|
|
|
|
|
/[[:alpha:]]+/utf,ucp
|
|
|
|
|
|
|
|
/[[:^alpha:]\S]+/utf,ucp
|
|
|
|
|
|
|
|
/abc(d|e)(*THEN)x(123(*THEN)4|567(b|q)(*THEN)xx)/
|
|
|
|
|
|
|
|
/(((a\2)|(a*)\g<-1>))*a?/
|
|
|
|
|
2015-03-01 13:34:05 -05:00
|
|
|
/((?+1)(\1))/
|
|
|
|
|
2015-03-29 07:15:32 -04:00
|
|
|
"(?1)(?#?'){2}(a)"
|
|
|
|
|
2015-05-03 12:46:56 -04:00
|
|
|
/.((?2)(?R)|\1|$)()/
|
|
|
|
|
|
|
|
/.((?3)(?R)()(?2)|\1|$)()/
|
|
|
|
|
2015-05-06 12:51:25 -04:00
|
|
|
/(?1)()((((((\1++))\x85)+)|))/
|
|
|
|
|
2015-06-03 13:18:06 -04:00
|
|
|
# Check the absolute limit on nesting (?| etc. This varies with code unit
|
|
|
|
# width because the workspace is a different number of bytes. It will fail
|
2015-11-14 08:22:34 -05:00
|
|
|
# with link size 2 in 8-bit and 16-bit but not in 32-bit.
|
|
|
|
|
2015-06-03 13:18:06 -04:00
|
|
|
/(?|(?|(?J:(?|(?x:(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|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?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|
|
|
|
|
)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
|
|
|
|
/parens_nest_limit=1000,-fullbincode
|
|
|
|
|
2015-11-08 09:41:34 -05:00
|
|
|
# Use "expand" to create some very long patterns with nested parentheses, in
|
|
|
|
# order to test workspace overflow. Again, this varies with code unit width,
|
2015-11-14 08:22:34 -05:00
|
|
|
# and even with it fails in two modes, the error offset differs. It also varies
|
|
|
|
# with link size - hence multiple tests with different values.
|
2015-11-08 09:41:34 -05:00
|
|
|
|
|
|
|
/(?'ABC'\[[bar](]{105}*THEN:\[A]{255}\[)]{106}/expand,-fullbincode
|
|
|
|
|
|
|
|
/(?'ABC'\[[bar](]{106}*THEN:\[A]{255}\[)]{107}/expand,-fullbincode
|
|
|
|
|
2015-11-14 08:22:34 -05:00
|
|
|
/(?'ABC'\[[bar](]{159}*THEN:\[A]{255}\[)]{160}/expand,-fullbincode
|
|
|
|
|
|
|
|
/(?'ABC'\[[bar](]{199}*THEN:\[A]{255}\[)]{200}/expand,-fullbincode
|
|
|
|
|
|
|
|
/(?'ABC'\[[bar](]{299}*THEN:\[A]{255}\[)]{300}/expand,-fullbincode
|
|
|
|
|
2015-08-09 12:29:35 -04:00
|
|
|
/(?(1)(?1)){8,}+()/debug
|
|
|
|
abcd
|
|
|
|
|
|
|
|
/(?(1)|a(?1)b){2,}+()/debug
|
|
|
|
abcde
|
|
|
|
|
|
|
|
/((?1)(?2)(?3)(?4)(?5)(?6)(?7)(?8)(?9)(?9)(?8)(?7)(?6)(?5)(?4)(?3)(?2)(?1)(?0)){2,}()()()()()()()()()/debug
|
|
|
|
|
2014-08-05 12:51:32 -04:00
|
|
|
# End of testinput8
|