diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-10-19 18:22:05 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-10-19 18:22:05 (GMT) |
commit | 34be72f9ed749a5c013d3f7f47d810e8caf652cb (patch) | |
tree | 2f75b6050c088da53d774b3da3fb71e7fa49ec78 /libxml2/test/pattern | |
parent | 604eac5688c5d437ed6d585ee63e53fba6f558c0 (diff) | |
parent | 0f851b6f17365c29b56d6a17564d58a33120508a (diff) | |
download | blt-34be72f9ed749a5c013d3f7f47d810e8caf652cb.zip blt-34be72f9ed749a5c013d3f7f47d810e8caf652cb.tar.gz blt-34be72f9ed749a5c013d3f7f47d810e8caf652cb.tar.bz2 |
Merge commit '0f851b6f17365c29b56d6a17564d58a33120508a' as 'libxml2'
Diffstat (limited to 'libxml2/test/pattern')
-rw-r--r-- | libxml2/test/pattern/conj.pat | 8 | ||||
-rw-r--r-- | libxml2/test/pattern/conj.xml | 13 | ||||
-rw-r--r-- | libxml2/test/pattern/multiple.pat | 27 | ||||
-rw-r--r-- | libxml2/test/pattern/multiple.xml | 5 | ||||
-rw-r--r-- | libxml2/test/pattern/namespaces.pat | 10 | ||||
-rw-r--r-- | libxml2/test/pattern/namespaces.xml | 17 | ||||
-rw-r--r-- | libxml2/test/pattern/simple.pat | 15 | ||||
-rw-r--r-- | libxml2/test/pattern/simple.xml | 5 |
8 files changed, 100 insertions, 0 deletions
diff --git a/libxml2/test/pattern/conj.pat b/libxml2/test/pattern/conj.pat new file mode 100644 index 0000000..ca80a06 --- /dev/null +++ b/libxml2/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/libxml2/test/pattern/conj.xml b/libxml2/test/pattern/conj.xml new file mode 100644 index 0000000..c1c770e --- /dev/null +++ b/libxml2/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/libxml2/test/pattern/multiple.pat b/libxml2/test/pattern/multiple.pat new file mode 100644 index 0000000..3f1ee3e --- /dev/null +++ b/libxml2/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/libxml2/test/pattern/multiple.xml b/libxml2/test/pattern/multiple.xml new file mode 100644 index 0000000..62f31a5 --- /dev/null +++ b/libxml2/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/libxml2/test/pattern/namespaces.pat b/libxml2/test/pattern/namespaces.pat new file mode 100644 index 0000000..c273a10 --- /dev/null +++ b/libxml2/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/libxml2/test/pattern/namespaces.xml b/libxml2/test/pattern/namespaces.xml new file mode 100644 index 0000000..1ebb50f --- /dev/null +++ b/libxml2/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/libxml2/test/pattern/simple.pat b/libxml2/test/pattern/simple.pat new file mode 100644 index 0000000..1b298ae --- /dev/null +++ b/libxml2/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/libxml2/test/pattern/simple.xml b/libxml2/test/pattern/simple.xml new file mode 100644 index 0000000..16ac6c2 --- /dev/null +++ b/libxml2/test/pattern/simple.xml @@ -0,0 +1,5 @@ +<a> + <b> + <c d="attr">text</c> + </b> +</a> |