diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-09-17 10:33:10 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-09-17 10:33:10 +0000 |
commit | 7db16ba3c10dc197fb02335118d5b53f6dd53c59 (patch) | |
tree | c108458c1aea87cc6eca894bccc6cf2ddadffa79 | |
parent | 9675b21a75d1c07540a2524684ad271106d0024a (diff) | |
download | pcre-7db16ba3c10dc197fb02335118d5b53f6dd53c59.tar.gz |
Version of Test 3 for Windows.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@249 2f5784b3-3f2a-0410-8824-cb99058d5e15
-rw-r--r-- | RunTest.bat | 5 | ||||
-rw-r--r-- | testdata/wintestinput3 | 91 | ||||
-rw-r--r-- | testdata/wintestoutput3 | 164 |
3 files changed, 259 insertions, 1 deletions
diff --git a/RunTest.bat b/RunTest.bat index 57dbc00..70517d0 100644 --- a/RunTest.bat +++ b/RunTest.bat @@ -1,5 +1,6 @@ @rem This file was contributed by Ralf Junker, and touched up by @rem Daniel Richard G. Test 10 added by Philip H. +@rem Philip H also changed test 3 to use "wintest" files. @rem @rem MS Windows batch file to run pcretest on testfiles with the correct @rem options. @@ -15,7 +16,8 @@ if not exist testout md testout %pcretest% -q %srcdir%\testdata\testinput1 > testout\testoutput1 %pcretest% -q %srcdir%\testdata\testinput2 > testout\testoutput2 -%pcretest% -q %srcdir%\testdata\testinput3 > testout\testoutput3 +@rem %pcretest% -q %srcdir%\testdata\testinput3 > testout\testoutput3 +%pcretest% -q %srcdir%\testdata\wintestinput3 > testout\wintestoutput3 %pcretest% -q %srcdir%\testdata\testinput4 > testout\testoutput4 %pcretest% -q %srcdir%\testdata\testinput5 > testout\testoutput5 %pcretest% -q %srcdir%\testdata\testinput6 > testout\testoutput6 @@ -27,6 +29,7 @@ if not exist testout md testout fc /n %srcdir%\testdata\testoutput1 testout\testoutput1 fc /n %srcdir%\testdata\testoutput2 testout\testoutput2 rem fc /n %srcdir%\testdata\testoutput3 testout\testoutput3 +fc /n %srcdir%\testdata\wintestoutput3 testout\wintestoutput3 fc /n %srcdir%\testdata\testoutput4 testout\testoutput4 fc /n %srcdir%\testdata\testoutput5 testout\testoutput5 fc /n %srcdir%\testdata\testoutput6 testout\testoutput6 diff --git a/testdata/wintestinput3 b/testdata/wintestinput3 new file mode 100644 index 0000000..04e76a6 --- /dev/null +++ b/testdata/wintestinput3 @@ -0,0 +1,91 @@ +/^[\w]+/ + *** Failers + École + +/^[\w]+/Lfrench + École + +/^[\w]+/ + *** Failers + École + +/^[\W]+/ + École + +/^[\W]+/Lfrench + *** Failers + École + +/[\b]/ + \b + *** Failers + a + +/[\b]/Lfrench + \b + *** Failers + a + +/^\w+/ + *** Failers + École + +/^\w+/Lfrench + École + +/(.+)\b(.+)/ + École + +/(.+)\b(.+)/Lfrench + *** Failers + École + +/École/i + École + *** Failers + école + +/École/iLfrench + École + école + +/\w/IS + +/\w/ISLfrench + +/^[\xc8-\xc9]/iLfrench + École + école + +/^[\xc8-\xc9]/Lfrench + École + *** Failers + école + +/\W+/Lfrench + >>>\xaa<<< + >>>\xba<<< + +/[\W]+/Lfrench + >>>\xaa<<< + >>>\xba<<< + +/[^[:alpha:]]+/Lfrench + >>>\xaa<<< + >>>\xba<<< + +/\w+/Lfrench + >>>\xaa<<< + >>>\xba<<< + +/[\w]+/Lfrench + >>>\xaa<<< + >>>\xba<<< + +/[[:alpha:]]+/Lfrench + >>>\xaa<<< + >>>\xba<<< + +/[[:alpha:]][[:lower:]][[:upper:]]/DZLfrench + +/ End of testinput3 / diff --git a/testdata/wintestoutput3 b/testdata/wintestoutput3 new file mode 100644 index 0000000..df9dfee --- /dev/null +++ b/testdata/wintestoutput3 @@ -0,0 +1,164 @@ +/^[\w]+/ + *** Failers +No match + École +No match + +/^[\w]+/Lfrench + École + 0: École + +/^[\w]+/ + *** Failers +No match + École +No match + +/^[\W]+/ + École + 0: \xc9 + +/^[\W]+/Lfrench + *** Failers + 0: *** + École +No match + +/[\b]/ + \b + 0: \x08 + *** Failers +No match + a +No match + +/[\b]/Lfrench + \b + 0: \x08 + *** Failers +No match + a +No match + +/^\w+/ + *** Failers +No match + École +No match + +/^\w+/Lfrench + École + 0: École + +/(.+)\b(.+)/ + École + 0: \xc9cole + 1: \xc9 + 2: cole + +/(.+)\b(.+)/Lfrench + *** Failers + 0: *** Failers + 1: *** + 2: Failers + École +No match + +/École/i + École + 0: \xc9cole + *** Failers +No match + école +No match + +/École/iLfrench + École + 0: École + école + 0: école + +/\w/IS +Capturing subpattern count = 0 +No options +No first char +No need char +Starting byte set: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P + Q R S T U V W X Y Z _ a b c d e f g h i j k l m n o p q r s t u v w x y z + +/\w/ISLfrench +Capturing subpattern count = 0 +No options +No first char +No need char +Starting byte set: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P + Q R S T U V W X Y Z _ a b c d e f g h i j k l m n o p q r s t u v w x y z + ƒ Š Œ Ž š œ ž Ÿ ª ² ³ µ ¹ º À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö + Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ø ù ú û ü ý + þ ÿ + +/^[\xc8-\xc9]/iLfrench + École + 0: É + école + 0: é + +/^[\xc8-\xc9]/Lfrench + École + 0: É + *** Failers +No match + école +No match + +/\W+/Lfrench + >>>\xaa<<< + 0: >>> + >>>\xba<<< + 0: >>> + +/[\W]+/Lfrench + >>>\xaa<<< + 0: >>> + >>>\xba<<< + 0: >>> + +/[^[:alpha:]]+/Lfrench + >>>\xaa<<< + 0: >>> + >>>\xba<<< + 0: >>> + +/\w+/Lfrench + >>>\xaa<<< + 0: ª + >>>\xba<<< + 0: º + +/[\w]+/Lfrench + >>>\xaa<<< + 0: ª + >>>\xba<<< + 0: º + +/[[:alpha:]]+/Lfrench + >>>\xaa<<< + 0: ª + >>>\xba<<< + 0: º + +/[[:alpha:]][[:lower:]][[:upper:]]/DZLfrench +------------------------------------------------------------------ + Bra + [A-Za-z\x83\x8a\x8c\x8e\x9a\x9c\x9e\x9f\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\xff] + [a-z\x83\x9a\x9c\x9e\xaa\xb5\xba\xdf-\xf6\xf8-\xff] + [A-Z\x8a\x8c\x8e\x9f\xc0-\xd6\xd8-\xde] + Ket + End +------------------------------------------------------------------ +Capturing subpattern count = 0 +No options +No first char +No need char + +/ End of testinput3 / |