summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorzherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-11-13 16:31:38 +0000
committerzherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-11-13 16:31:38 +0000
commitfce480ed2031901b511711ff50ca67afe06080f0 (patch)
tree5e881c3c0cb46de8a3d83a84538cbc18f04e7f5b /testdata
parent0cba29be59c8ca542c0982fa506d813970cdb84f (diff)
downloadpcre-fce480ed2031901b511711ff50ca67afe06080f0.tar.gz
Correctly supporting \x and \u in JavaScript compatibility mode
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@744 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput234
-rw-r--r--testdata/testoutput252
2 files changed, 86 insertions, 0 deletions
diff --git a/testdata/testinput2 b/testdata/testinput2
index b101097..ae822de 100644
--- a/testdata/testinput2
+++ b/testdata/testinput2
@@ -3969,4 +3969,38 @@ AbcdCBefgBhiBqz
/^(?>(a+))(?>b+)(?>(c+))(?>d+)(?>(e+))/
\Maabbccddee
+/^a\x41z/<JS>
+ aAz
+ *** Failers
+ ax41z
+
+/^a[m\x41]z/<JS>
+ aAz
+
+/^a\x1z/<JS>
+ ax1z
+
+/^a\X41z/<JS>
+ aX41z
+ *** Failers
+ aAz
+
+/^a\u0041z/<JS>
+ aAz
+ *** Failers
+ au0041z
+
+/^a[m\u0041]z/<JS>
+ aAz
+
+/^a\u041z/<JS>
+ au041z
+ *** Failers
+ aAz
+
+/^a\U0041z/<JS>
+ aU0041z
+ *** Failers
+ aAz
+
/-- End of testinput2 --/
diff --git a/testdata/testoutput2 b/testdata/testoutput2
index f3ea88a..17e28bb 100644
--- a/testdata/testoutput2
+++ b/testdata/testoutput2
@@ -12502,4 +12502,56 @@ Minimum match() recursion limit = 13
2: cc
3: ee
+/^a\x41z/<JS>
+ aAz
+ 0: aAz
+ *** Failers
+No match
+ ax41z
+No match
+
+/^a[m\x41]z/<JS>
+ aAz
+ 0: aAz
+
+/^a\x1z/<JS>
+ ax1z
+ 0: ax1z
+
+/^a\X41z/<JS>
+ aX41z
+ 0: aX41z
+ *** Failers
+No match
+ aAz
+No match
+
+/^a\u0041z/<JS>
+ aAz
+ 0: aAz
+ *** Failers
+No match
+ au0041z
+No match
+
+/^a[m\u0041]z/<JS>
+ aAz
+ 0: aAz
+
+/^a\u041z/<JS>
+ au041z
+ 0: au041z
+ *** Failers
+No match
+ aAz
+No match
+
+/^a\U0041z/<JS>
+ aU0041z
+ 0: aU0041z
+ *** Failers
+No match
+ aAz
+No match
+
/-- End of testinput2 --/