diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2002-04-16 15:50:10 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2002-04-16 15:50:10 +0000 |
commit | 4255d504151db75c17f85192ce74f45dd2d65533 (patch) | |
tree | c5178b59777475a9fcc5a8df4fa0737acb9e4675 /test/regexp | |
parent | f7c730f074c676e2430abba8313f25c149089dcb (diff) | |
download | libxml2-4255d504151db75c17f85192ce74f45dd2d65533.tar.gz |
merged the current state of XML Schemas implementation, it is not
* Makefile.am TODO_SCHEMAS configure.in genUnicode.py testAutomata.c
testRegexp.c testSchemas.c xmlregexp.c xmlschemas.c xmlschemastypes.c
xmlunicode.c include/libxml/Makefile.am
include/libxml/schemasInternals.h include/libxml/xmlautomata.h
include/libxml/xmlregexp.h include/libxml/xmlschemas.h
include/libxml/xmlschemastypes.h include/libxml/xmlunicode.h
include/libxml/xmlversion.h.in : merged the current state of
XML Schemas implementation, it is not configured in by default,
a specific --schemas configure option has been added.
* test/automata test/regexp test/schemas Makefile.am
result/automata result/regexp result/schemas:
merged automata/regexp/schemas regression tests
Daniel
Diffstat (limited to 'test/regexp')
-rw-r--r-- | test/regexp/content | 12 | ||||
-rw-r--r-- | test/regexp/hard | 7 | ||||
-rw-r--r-- | test/regexp/ncname | 6 | ||||
-rw-r--r-- | test/regexp/ranges | 15 | ||||
-rw-r--r-- | test/regexp/xpath | 37 |
5 files changed, 77 insertions, 0 deletions
diff --git a/test/regexp/content b/test/regexp/content new file mode 100644 index 00000000..9d01c8b2 --- /dev/null +++ b/test/regexp/content @@ -0,0 +1,12 @@ +=>((a|b|c)def) +adef +bdef +adefg +aaef +=>((a|b|c|d|e|f)?(g|h|i)+(k|l)*) +g +gi +fil +gikl +cghhhiill +ak diff --git a/test/regexp/hard b/test/regexp/hard new file mode 100644 index 00000000..40c6d2d4 --- /dev/null +++ b/test/regexp/hard @@ -0,0 +1,7 @@ +=>((a|b|\p{Nd}){1,2}|aaa|bbbb){1,2} +bab +aaca +aaabbbb +a0b +aa0aaa +b0aaa diff --git a/test/regexp/ncname b/test/regexp/ncname new file mode 100644 index 00000000..1e452a89 --- /dev/null +++ b/test/regexp/ncname @@ -0,0 +1,6 @@ +=>[\i-[:]][\c-[:]]* +a +abc +abc1d +1ac +a1b:c diff --git a/test/regexp/ranges b/test/regexp/ranges new file mode 100644 index 00000000..cb7c22f9 --- /dev/null +++ b/test/regexp/ranges @@ -0,0 +1,15 @@ +=>a{2,3} +a +aa +aaa +aaaa +=>ba{2,3}c +bac +baac +baaac +baaaac +=>a(b|c){2,3}d +abcd +acccd +abd +accccd diff --git a/test/regexp/xpath b/test/regexp/xpath new file mode 100644 index 00000000..62c18c41 --- /dev/null +++ b/test/regexp/xpath @@ -0,0 +1,37 @@ +=>(\.//)?(((child::)?((\i\c*:)?(\i\c*|\*)))|\.)(/(((child::)?((\i\c*:)?(\i\c*|\*)))|\.))*(\|(\.//)?(((child::)?((\i\c*:)?(\i\c*|\*)))|\.)(/(((child::)?((\i\c*:)?(\i\c*|\*)))|\.))*)* +a +a12/b312/b312/b312/b312/b312/b312/b312/b312/b312/b312/b312/b3 +* +a|b +.//a:b +a/b/c +a/*/b +a:*/b:*/c:* +child::a/child::b:* +child::a/child::b:*|a/*/b|.//a:b +1 +1ab +a:1 +@a +ancestor::a +# +# the previous regexp from the Schemas for Schemas was broken +# here is the fixed one: +# http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002AprJun/0005.html +# +=>(\.//)?(((child::)?(([\i-[:]][\c-[:]]*:)?([\i-[:]][\c-[:]]*|\*)))|\.)(/(((child::)?(([\i-[:]][\c-[:]]*:)?([\i-[:]][\c-[:]]*|\*)))|\.))*(\|(\.//)?(((child::)?(([\i-[:]][\c-[:]]*:)?([\i-[:]][\c-[:]]*|\*)))|\.)(/(((child::)?(([\i-[:]][\c-[:]]*:)?([\i-[:]][\c-[:]]*|\*)))|\.))*)* +a +a12/b312/b312/b312/b312/b312/b312/b312/b312/b312/b312/b312/b3 +* +a|b +.//a:b +a/b/c +a/*/b +a:*/b:*/c:* +child::a/child::b:* +child::a/child::b:*|a/*/b|.//a:b +1 +1ab +a:1 +@a +ancestor::a |