diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2015-08-18 10:34:05 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2015-08-18 10:34:05 +0000 |
commit | e4b2532cb5204ede16f39aca7c63a97ff380094b (patch) | |
tree | 3215cf19e650395e5c828932d38dacc1fc076a05 /testdata/testoutput19 | |
parent | 060fab17340fc4b8615bc4ee486f269ed8b799c8 (diff) | |
download | pcre2-e4b2532cb5204ede16f39aca7c63a97ff380094b.tar.gz |
Runtime UTF checks now take not of the starting offset.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@348 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata/testoutput19')
-rw-r--r-- | testdata/testoutput19 | 112 |
1 files changed, 16 insertions, 96 deletions
diff --git a/testdata/testoutput19 b/testdata/testoutput19 index 7f3aa0c..e2bdf32 100644 --- a/testdata/testoutput19 +++ b/testdata/testoutput19 @@ -1,100 +1,20 @@ -# This set of tests exercises the serialization/deserialization functions in -# the library. It does not use UTF or JIT. - -#forbid_utf - -# Compile several patterns, push them onto the stack, and then write them -# all to a file. - -#pattern push - -/(?<NAME>(?&NAME_PAT))\s+(?<ADDR>(?&ADDRESS_PAT)) - (?(DEFINE) - (?<NAME_PAT>[a-z]+) - (?<ADDRESS_PAT>\d+) - )/x -/^(?:((.)(?1)\2|)|((.)(?3)\4|.))$/i - -#save testsaved1 - -# Do it again for some more patterns. - -/(*MARK:A)(*SKIP:B)(C|X)/mark -** Ignored when compiled pattern is stacked with 'push': mark -/(?:(?<n>foo)|(?<n>bar))\k<n>/dupnames - -#save testsaved2 -#pattern -push - -# Reload the patterns, then pop them one by one and check them. - -#load testsaved1 -#load testsaved2 - -#pop info -Capturing subpattern count = 2 -Max back reference = 2 -Named capturing subpatterns: - n 1 - n 2 -Options: dupnames -Starting code units: b f -Subject length lower bound = 6 - foofoo - 0: foofoo - 1: foo - barbar - 0: barbar - 1: <unset> - 2: bar - -#pop mark - C - 0: C - 1: C -MK: A - D -No match, mark = A - -#pop - AmanaplanacanalPanama - 0: AmanaplanacanalPanama - 1: <unset> - 2: <unset> - 3: AmanaplanacanalPanama - 4: A - -#pop info -Capturing subpattern count = 4 -Named capturing subpatterns: - ADDR 2 - ADDRESS_PAT 4 - NAME 1 - NAME_PAT 3 -Options: extended -Subject length lower bound = 3 - metcalfe 33 - 0: metcalfe 33 - 1: metcalfe - 2: 33 +# This set of tests is run only with the 8-bit library. It tests the POSIX +# interface with UTF/UCP support, 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). -# Check for an error when different tables are used. - -/abc/push,tables=1 -/xyz/push,tables=2 -#save testsaved1 -Serialization failed: error -30: patterns do not all use the same character tables +#pattern posix -#pop - xyz - 0: xyz +/a\x{1234}b/utf + a\x{1234}b + 0: a\x{1234}b -#pop - abc - 0: abc +/\w/ + +++\x{c2} +No match: POSIX code 17: match failed -#pop should give an error -** Can't pop off an empty stack - pqr - -# End of testinput19 +/\w/ucp + +++\x{c2} + 0: \xc2 + +# End of testdata/testinput19 |