[Pcre-svn] [449] code/trunk: Another test for (*ACCEPT)

Página Inicial
Delete this message
Autor: Subversion repository
Data:  
Para: pcre-svn
Assunto: [Pcre-svn] [449] code/trunk: Another test for (*ACCEPT)
Revision: 449
          http://vcs.pcre.org/viewvc?view=rev&revision=449
Author:   ph10
Date:     2009-09-16 09:48:17 +0100 (Wed, 16 Sep 2009)


Log Message:
-----------
Another test for (*ACCEPT)

Modified Paths:
--------------
    code/trunk/RunTest
    code/trunk/testdata/testinput2
    code/trunk/testdata/testoutput2


Modified: code/trunk/RunTest
===================================================================
--- code/trunk/RunTest    2009-09-15 19:11:48 UTC (rev 448)
+++ code/trunk/RunTest    2009-09-16 08:48:17 UTC (rev 449)
@@ -133,10 +133,10 @@
 echo PCRE C library tests
 ./pcretest /dev/null


-# Primary test, Perl-compatible
+# Primary test, Perl-compatible for both 5.8 and 5.10

 if [ $do1 = yes ] ; then
-  echo "Test 1: main functionality (Perl compatible)"
+  echo "Test 1: main functionality (Perl 5.8 & 5.10 compatible)"
   $valgrind ./pcretest -q $testdata/testinput1 testtry
   if [ $? = 0 ] ; then
     $cf $testdata/testoutput1 testtry
@@ -146,10 +146,10 @@
   echo "OK"
 fi


-# PCRE tests that are not Perl-compatible - API & error tests, mostly
+# PCRE tests that are not Perl-compatible - API, errors, internals

 if [ $do2 = yes ] ; then
-  echo "Test 2: API, errors, and non-Perl stuff"
+  echo "Test 2: API, errors, internals, and non-Perl stuff"
   $valgrind ./pcretest -q $testdata/testinput2 testtry
   if [ $? = 0 ] ; then
     $cf $testdata/testoutput2 testtry
@@ -215,7 +215,7 @@
 # Additional tests for UTF8 support


 if [ $do4 = yes ] ; then
-  echo "Test 4: UTF-8 support (Perl compatible)"
+  echo "Test 4: UTF-8 support (Perl 5.8 & 5.10 compatible)"
   $valgrind ./pcretest -q $testdata/testinput4 testtry
   if [ $? = 0 ] ; then
     $cf $testdata/testoutput4 testtry


Modified: code/trunk/testdata/testinput2
===================================================================
--- code/trunk/testdata/testinput2    2009-09-15 19:11:48 UTC (rev 448)
+++ code/trunk/testdata/testinput2    2009-09-16 08:48:17 UTC (rev 449)
@@ -2750,6 +2750,8 @@


/(?&word)(?&element)(?(DEFINE)(?<element><[^\d][^>]>[^<])(?<word>\w*+))/BZ

+/(ab)(x(y)z(cd(*ACCEPT)))pq/BZ
+
 /abc\K/+
     abcdef
     abcdef\N\N


Modified: code/trunk/testdata/testoutput2
===================================================================
--- code/trunk/testdata/testoutput2    2009-09-15 19:11:48 UTC (rev 448)
+++ code/trunk/testdata/testoutput2    2009-09-16 08:48:17 UTC (rev 449)
@@ -9606,6 +9606,30 @@
         End
 ------------------------------------------------------------------


+/(ab)(x(y)z(cd(*ACCEPT)))pq/BZ
+------------------------------------------------------------------
+        Bra
+        CBra 1
+        ab
+        Ket
+        CBra 2
+        x
+        CBra 3
+        y
+        Ket
+        z
+        CBra 4
+        cd
+        Close 4
+        Close 2
+        *ACCEPT
+        Ket
+        Ket
+        pq
+        Ket
+        End
+------------------------------------------------------------------
+
 /abc\K/+
     abcdef
  0: