summaryrefslogtreecommitdiff
path: root/test/relaxng
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-01-15 12:38:10 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-01-15 12:38:10 +0000
commit9186a1fdb637c71a7fbeb76e0bbe6104ee345de3 (patch)
tree90865fbd7db2d7eca75b299e3006410430eabee0 /test/relaxng
parent31113c7e86e39f3f5f0a84c235f2346f64746001 (diff)
downloadlibxml2-9186a1fdb637c71a7fbeb76e0bbe6104ee345de3.tar.gz
fixed bug #157633 in relaxng choice optimization added regression tests
* relaxng.c: fixed bug #157633 in relaxng choice optimization * result/relaxng/choice0* test/relaxng/choice0*: added regression tests about it. * doc/*: rebuilt * testdso.c: removed a warning due to a missing void in signature. Daniel
Diffstat (limited to 'test/relaxng')
-rw-r--r--test/relaxng/choice0.rng25
-rw-r--r--test/relaxng/choice0_0.xml2
-rw-r--r--test/relaxng/choice0_1.xml2
-rw-r--r--test/relaxng/choice0_2.xml3
-rw-r--r--test/relaxng/choice0_3.xml3
-rw-r--r--test/relaxng/choice0_4.xml2
-rw-r--r--test/relaxng/choice0_5.xml3
-rw-r--r--test/relaxng/choice0_6.xml3
-rw-r--r--test/relaxng/choice0_7.xml3
-rw-r--r--test/relaxng/choice0_8.xml3
10 files changed, 49 insertions, 0 deletions
diff --git a/test/relaxng/choice0.rng b/test/relaxng/choice0.rng
new file mode 100644
index 00000000..99526e18
--- /dev/null
+++ b/test/relaxng/choice0.rng
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<element xmlns="http://relaxng.org/ns/structure/1.0" name="device">
+ <choice>
+ <group>
+ <attribute name="link">
+ <value>ethernet</value>
+ </attribute>
+ <optional>
+ <element name="ethernet-element">
+ <text/>
+ </element>
+ </optional>
+ </group>
+ <group>
+ <attribute name="link">
+ <value>serial</value>
+ </attribute>
+ <optional>
+ <element name="serial-element">
+ <text/>
+ </element>
+ </optional>
+ </group>
+ </choice>
+</element>
diff --git a/test/relaxng/choice0_0.xml b/test/relaxng/choice0_0.xml
new file mode 100644
index 00000000..113ffa8c
--- /dev/null
+++ b/test/relaxng/choice0_0.xml
@@ -0,0 +1,2 @@
+<device link="ethernet">
+</device>
diff --git a/test/relaxng/choice0_1.xml b/test/relaxng/choice0_1.xml
new file mode 100644
index 00000000..f0c441da
--- /dev/null
+++ b/test/relaxng/choice0_1.xml
@@ -0,0 +1,2 @@
+<device link="serial">
+</device>
diff --git a/test/relaxng/choice0_2.xml b/test/relaxng/choice0_2.xml
new file mode 100644
index 00000000..5f67e0be
--- /dev/null
+++ b/test/relaxng/choice0_2.xml
@@ -0,0 +1,3 @@
+<device link="ethernet">
+ <ethernet-element/>
+</device>
diff --git a/test/relaxng/choice0_3.xml b/test/relaxng/choice0_3.xml
new file mode 100644
index 00000000..79ac4a60
--- /dev/null
+++ b/test/relaxng/choice0_3.xml
@@ -0,0 +1,3 @@
+<device link="serial">
+ <serial-element/>
+</device>
diff --git a/test/relaxng/choice0_4.xml b/test/relaxng/choice0_4.xml
new file mode 100644
index 00000000..1de1abcd
--- /dev/null
+++ b/test/relaxng/choice0_4.xml
@@ -0,0 +1,2 @@
+<device link="unknown">
+</device>
diff --git a/test/relaxng/choice0_5.xml b/test/relaxng/choice0_5.xml
new file mode 100644
index 00000000..2ac50f71
--- /dev/null
+++ b/test/relaxng/choice0_5.xml
@@ -0,0 +1,3 @@
+<device link="ethernet">
+ <serial-element/>
+</device>
diff --git a/test/relaxng/choice0_6.xml b/test/relaxng/choice0_6.xml
new file mode 100644
index 00000000..1e4d1d2b
--- /dev/null
+++ b/test/relaxng/choice0_6.xml
@@ -0,0 +1,3 @@
+<device link="serial">
+ <ethernet-element/>
+</device>
diff --git a/test/relaxng/choice0_7.xml b/test/relaxng/choice0_7.xml
new file mode 100644
index 00000000..f28f89f8
--- /dev/null
+++ b/test/relaxng/choice0_7.xml
@@ -0,0 +1,3 @@
+<device link="ethernet">
+ <unknown-element/>
+</device>
diff --git a/test/relaxng/choice0_8.xml b/test/relaxng/choice0_8.xml
new file mode 100644
index 00000000..f8102298
--- /dev/null
+++ b/test/relaxng/choice0_8.xml
@@ -0,0 +1,3 @@
+<device link="unknown">
+ <unknown-element/>
+</device>