diff options
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 0000000..9d01c8b --- /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 0000000..40c6d2d --- /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 0000000..1e452a8 --- /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 0000000..cb7c22f --- /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 0000000..62c18c4 --- /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 |