summaryrefslogtreecommitdiffstats
path: root/test/pattern
diff options
context:
space:
mode:
Diffstat (limited to 'test/pattern')
-rw-r--r--test/pattern/conj.pat8
-rw-r--r--test/pattern/conj.xml13
-rw-r--r--test/pattern/multiple.pat27
-rw-r--r--test/pattern/multiple.xml5
-rw-r--r--test/pattern/namespaces.pat10
-rw-r--r--test/pattern/namespaces.xml17
-rw-r--r--test/pattern/simple.pat15
-rw-r--r--test/pattern/simple.xml5
8 files changed, 100 insertions, 0 deletions
diff --git a/test/pattern/conj.pat b/test/pattern/conj.pat
new file mode 100644
index 0000000..ca80a06
--- /dev/null
+++ b/test/pattern/conj.pat
@@ -0,0 +1,8 @@
+a|b
+a|c
+b|c
+a|b|c
+/a|b
+b|/a
+a//c|b//c
+d|e|f|g|h|a
diff --git a/test/pattern/conj.xml b/test/pattern/conj.xml
new file mode 100644
index 0000000..c1c770e
--- /dev/null
+++ b/test/pattern/conj.xml
@@ -0,0 +1,13 @@
+<a>
+ <b>
+ <c><b/></c>
+ <c>
+ <b/>
+ <c><b/></c>
+ </c>
+ </b>
+ <c>
+ <b>
+ </b>
+ </c>
+</a>
diff --git a/test/pattern/multiple.pat b/test/pattern/multiple.pat
new file mode 100644
index 0000000..3f1ee3e
--- /dev/null
+++ b/test/pattern/multiple.pat
@@ -0,0 +1,27 @@
+a
+b
+c
+c/a
+c/b
+b/a
+c/b/a
+c//a
+c//b
+b//a
+c//b//a
+c/b//a
+c//b/a
+/a
+/b
+/c
+/c/a
+/c/b
+/b/a
+/c/b/a
+/c//a
+/c//b
+/b//a
+/c//b//a
+/c/b//a
+/c//b/a
+
diff --git a/test/pattern/multiple.xml b/test/pattern/multiple.xml
new file mode 100644
index 0000000..62f31a5
--- /dev/null
+++ b/test/pattern/multiple.xml
@@ -0,0 +1,5 @@
+<c>
+<b><a/><a/></b>
+<c><b><a/><a/></b></c>
+<b><a/><a/></b>
+</c>
diff --git a/test/pattern/namespaces.pat b/test/pattern/namespaces.pat
new file mode 100644
index 0000000..c273a10
--- /dev/null
+++ b/test/pattern/namespaces.pat
@@ -0,0 +1,10 @@
+//a
+//a:a
+//b
+//b:b
+/a//a
+/a/a
+/a/b
+/a/a:a
+/a/a:b
+/a/c:a
diff --git a/test/pattern/namespaces.xml b/test/pattern/namespaces.xml
new file mode 100644
index 0000000..1ebb50f
--- /dev/null
+++ b/test/pattern/namespaces.xml
@@ -0,0 +1,17 @@
+<a xmlns:a="http://a" xmlns:b="http://b" xmlns:c="http://a">
+ <b/>
+ <a:a>
+ <b:b/>
+ </a:a>
+ <b:b>
+ <a>
+ <a:a>
+ <b:b/>
+ </a:a>
+ </a>
+ </b:b>
+ <a xmlns="http://a">
+ <a xmlns=""/>
+ </a>
+ <c:a/>
+</a>
diff --git a/test/pattern/simple.pat b/test/pattern/simple.pat
new file mode 100644
index 0000000..1b298ae
--- /dev/null
+++ b/test/pattern/simple.pat
@@ -0,0 +1,15 @@
+a
+b
+b
+/a
+/b
+/c
+a/b
+a/b/c
+//a
+//b
+//c
+a//b
+a//c
+b//c
+
diff --git a/test/pattern/simple.xml b/test/pattern/simple.xml
new file mode 100644
index 0000000..16ac6c2
--- /dev/null
+++ b/test/pattern/simple.xml
@@ -0,0 +1,5 @@
+<a>
+ <b>
+ <c d="attr">text</c>
+ </b>
+</a>