[Pcre-svn] [1081] code/trunk/testdata: pcre32: tests: Add te…

Startseite
Nachricht löschen
Autor: Subversion repository
Datum:  
To: pcre-svn
Betreff: [Pcre-svn] [1081] code/trunk/testdata: pcre32: tests: Add test for 32-bit firstchar and reqchar
Revision: 1081
          http://vcs.pcre.org/viewvc?view=rev&revision=1081
Author:   chpe
Date:     2012-10-16 16:55:12 +0100 (Tue, 16 Oct 2012)


Log Message:
-----------
pcre32: tests: Add test for 32-bit firstchar and reqchar

Make sure that first_char and req_char work for 32-bit characters
using the full 32-bit range.

Modified Paths:
--------------
    code/trunk/testdata/testinput25
    code/trunk/testdata/testoutput25


Modified: code/trunk/testdata/testinput25
===================================================================
--- code/trunk/testdata/testinput25    2012-10-16 15:55:07 UTC (rev 1080)
+++ code/trunk/testdata/testinput25    2012-10-16 15:55:12 UTC (rev 1081)
@@ -10,6 +10,12 @@


/\x{ffffffff}/

+/\x{7fffffff}\x{7fffffff}/I
+
+/\x{80000000}\x{80000000}/I
+
+/\x{ffffffff}\x{ffffffff}/I
+
/-- Non-UTF characters --/

/\C{2,3}/

Modified: code/trunk/testdata/testoutput25
===================================================================
--- code/trunk/testdata/testoutput25    2012-10-16 15:55:07 UTC (rev 1080)
+++ code/trunk/testdata/testoutput25    2012-10-16 15:55:12 UTC (rev 1081)
@@ -10,6 +10,24 @@


/\x{ffffffff}/

+/\x{7fffffff}\x{7fffffff}/I
+Capturing subpattern count = 0
+No options
+First char = \x{7fffffff}
+Need char = \x{7fffffff}
+
+/\x{80000000}\x{80000000}/I
+Capturing subpattern count = 0
+No options
+First char = \x{80000000}
+Need char = \x{80000000}
+
+/\x{ffffffff}\x{ffffffff}/I
+Capturing subpattern count = 0
+No options
+First char = \x{ffffffff}
+Need char = \x{ffffffff}
+
/-- Non-UTF characters --/

/\C{2,3}/