Skip to content

Commit

Permalink
"" is a valid hexbinary string dixit xmlschema-dev update the test. a…
Browse files Browse the repository at this point in the history
…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
Daniel Veillard committed Aug 31, 2004
1 parent fc263f1 commit f34a20e
Show file tree
Hide file tree
Showing 11 changed files with 49 additions and 4 deletions.
9 changes: 9 additions & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions Makefile.am
Expand Up @@ -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)

Expand Down
4 changes: 4 additions & 0 deletions 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>
4 changes: 4 additions & 0 deletions 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>
7 changes: 7 additions & 0 deletions 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
7 changes: 7 additions & 0 deletions 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
11 changes: 11 additions & 0 deletions 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()
2 changes: 0 additions & 2 deletions 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.
Expand Down
4 changes: 4 additions & 0 deletions test/ns5
@@ -0,0 +1,4 @@
<element name="foo" xmlns:rng="http://example.org/ns/1" xmlns="http://example.org/ns/1">
<empty/>
</element>

2 changes: 1 addition & 1 deletion 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/>
Expand Down
2 changes: 1 addition & 1 deletion xmlschemastypes.c
Expand Up @@ -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')) ||
Expand Down

0 comments on commit f34a20e

Please sign in to comment.