2014-08-05 12:51:32 -04:00
|
|
|
# These are a few representative patterns whose lengths and offsets are to be
|
|
|
|
# shown when the link size is 2. This is just a doublecheck test to ensure the
|
|
|
|
# sizes don't go horribly wrong when something is changed. The pattern contents
|
|
|
|
# are all themselves checked in other tests. Unicode, including property
|
2015-08-09 12:29:35 -04:00
|
|
|
# support, is required for these tests. There are separate output files for
|
|
|
|
# each code unit 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\*aZDnsw\:YKZ\%Q\.Kne9\#hP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aa]/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
|
|
|
|
# in 8-bit and 16-bit but not in 32-bit.
|
|
|
|
|
|
|
|
/(?|(?|(?J:(?|(?x:(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(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|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|
|
|
|
|
)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
|
|
|
|
/parens_nest_limit=1000,-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
|