Browse files

"" is a valid hexbinary string dixit xmlschema-dev update the test. a…

…dded

* xmlschemastypes.c: "" is a valid hexbinary string dixit xmlschema-dev
* result/schemas/hexbinary_0_1.err test/schemas/hexbinary_1.xml:
  update the test.
* test/ns5 result//ns5*: added a test for the namespace bug fixed
  in previous commit.
* Makefile.am: added a message in the regression tests
Daniel
  • Loading branch information...
1 parent fc263f1 commit f34a20e69dc675cd23d3eb558cad135ea280f472 Daniel Veillard committed Aug 31, 2004
Showing with 49 additions and 4 deletions.
  1. +9 −0 ChangeLog
  2. +1 −0 Makefile.am
  3. +4 −0 result/noent/ns5
  4. +4 −0 result/ns5
  5. +7 −0 result/ns5.rde
  6. +7 −0 result/ns5.rdr
  7. +11 −0 result/ns5.sax
  8. +0 −2 result/schemas/hexbinary_0_1.err
  9. +4 −0 test/ns5
  10. +1 −1 test/schemas/hexbinary_1.xml
  11. +1 −1 xmlschemastypes.c
View
9 ChangeLog
@@ -1,3 +1,12 @@
+Tue Aug 31 10:37:23 CEST 2004 Daniel Veillard <daniel@veillard.com>
+
+ * xmlschemastypes.c: "" is a valid hexbinary string dixit xmlschema-dev
+ * result/schemas/hexbinary_0_1.err test/schemas/hexbinary_1.xml:
+ update the test.
+ * test/ns5 result//ns5*: added a test for the namespace bug fixed
+ in previous commit.
+ * Makefile.am: added a message in the regression tests
+
Mon Aug 30 23:36:21 PDT 2004 William Brack <wbrack@mmm.com.hk>
* SAX2.c: fixed bug introduced during OOM fixup causing problems
View
1 Makefile.am
@@ -967,6 +967,7 @@ SchemasPythonTests:
PYTHONPATH=$(top_builddir)/python:$(top_builddir)/python/.libs:$$PYTHONPATH; \
export PYTHONPATH; \
echo "## XML Schemas datatypes Python based test suite" ; \
+ echo "## It is normal to see 6 errors reported" ; \
$(CHECKER) $(PYTHON) $(srcdir)/check-xsddata-test-suite.py ; \
fi)
View
4 result/noent/ns5
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<element xmlns:rng="http://example.org/ns/1" xmlns="http://example.org/ns/1" name="foo">
+ <empty/>
+</element>
View
4 result/ns5
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<element xmlns:rng="http://example.org/ns/1" xmlns="http://example.org/ns/1" name="foo">
+ <empty/>
+</element>
View
7 result/ns5.rde
@@ -0,0 +1,7 @@
+0 1 element 0 0
+1 14 #text 0 1
+
+1 1 empty 1 0
+1 14 #text 0 1
+
+0 15 element 0 0
View
7 result/ns5.rdr
@@ -0,0 +1,7 @@
+0 1 element 0 0
+1 14 #text 0 1
+
+1 1 empty 1 0
+1 14 #text 0 1
+
+0 15 element 0 0
View
11 result/ns5.sax
@@ -0,0 +1,11 @@
+SAX.setDocumentLocator()
+SAX.startDocument()
+SAX.startElement(element, name='foo', xmlns:rng='http://example.org/ns/1', xmlns='http://example.org/ns/1')
+SAX.characters(
+ , 3)
+SAX.startElement(empty)
+SAX.endElement(empty)
+SAX.characters(
+, 1)
+SAX.endElement(element)
+SAX.endDocument()
View
2 result/schemas/hexbinary_0_1.err
@@ -1,5 +1,3 @@
-./test/schemas/hexbinary_1.xml:4: element hex: Schemas validity error : Element 'hex' ['hexBinary']: The character content is not valid.
-./test/schemas/hexbinary_1.xml:5: element hex: Schemas validity error : Element 'hex' ['hexBinary']: The character content is not valid.
./test/schemas/hexbinary_1.xml:6: element hex: Schemas validity error : Element 'hex' ['hexBinary']: The character content is not valid.
./test/schemas/hexbinary_1.xml:7: element hex: Schemas validity error : Element 'hex' ['hexBinary']: The character content is not valid.
./test/schemas/hexbinary_1.xml:8: element hex: Schemas validity error : Element 'hex' ['hexBinary']: The character content is not valid.
View
4 test/ns5
@@ -0,0 +1,4 @@
+<element name="foo" xmlns:rng="http://example.org/ns/1" xmlns="http://example.org/ns/1">
+ <empty/>
+</element>
+
View
2 test/schemas/hexbinary_1.xml
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
-<!-- all should fail to validate -->
+<!-- all (except 2 first) should fail to validate -->
<xsd_hexBinary>
<hex></hex>
<hex/>
View
2 xmlschemastypes.c
@@ -2304,7 +2304,7 @@ xmlSchemaValAtomicType(xmlSchemaTypePtr type, const xmlChar * value,
xmlChar *base;
int total, i = 0;
- if ((cur == NULL) || (*cur == 0))
+ if (cur == NULL)
goto return1;
while (((*cur >= '0') && (*cur <= '9')) ||

0 comments on commit f34a20e

Please sign in to comment.