aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx/tree/encoding/char/utf-8
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-11-08 14:25:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-11-08 14:25:59 +0200
commit400651ba7fd2f80155348ed39fc02e2aa9892fb9 (patch)
tree26b2c642dcac9bccd37b5d7d81c110dca1c16341 /tests/cxx/tree/encoding/char/utf-8
parent81bd19a5f232c84993c48535068c1791e937accc (diff)
Remove tests for character reference values unsupported by Xerces-C++ 3.2HEADmaster
It is actually unclear whether character references with more than 4 digits are valid. The XML spec seem to indicate they are but Xerces-C++ 3.2 serializer throws an invalid character reference exception (the parser appears to be able to handle them without problems).
Diffstat (limited to 'tests/cxx/tree/encoding/char/utf-8')
-rw-r--r--tests/cxx/tree/encoding/char/utf-8/driver.cxx6
-rw-r--r--tests/cxx/tree/encoding/char/utf-8/test.std2
-rw-r--r--tests/cxx/tree/encoding/char/utf-8/test.xml2
-rw-r--r--tests/cxx/tree/encoding/char/utf-8/test.xsd2
4 files changed, 2 insertions, 10 deletions
diff --git a/tests/cxx/tree/encoding/char/utf-8/driver.cxx b/tests/cxx/tree/encoding/char/utf-8/driver.cxx
index 53fef6a..abfff28 100644
--- a/tests/cxx/tree/encoding/char/utf-8/driver.cxx
+++ b/tests/cxx/tree/encoding/char/utf-8/driver.cxx
@@ -32,8 +32,7 @@ main (int argc, char* argv[])
if (s[0] != "abc" ||
s[1] != "\xD5\x95" ||
- s[2] != "\xEA\xAA\xAA" ||
- s[3] != "\xF2\xAA\xAA\xAA")
+ s[2] != "\xEA\xAA\xAA")
{
cerr << "invalid encoding" << endl;
return 1;
@@ -45,8 +44,7 @@ main (int argc, char* argv[])
if (s[0] != strenum::abc ||
s[1] != strenum::a_c ||
- s[2] != strenum::cxx_bc ||
- s[3] != strenum::ab_)
+ s[2] != strenum::cxx_bc)
{
cerr << "invalid encoding" << endl;
return 1;
diff --git a/tests/cxx/tree/encoding/char/utf-8/test.std b/tests/cxx/tree/encoding/char/utf-8/test.std
index ffce337..fdfef4c 100644
--- a/tests/cxx/tree/encoding/char/utf-8/test.std
+++ b/tests/cxx/tree/encoding/char/utf-8/test.std
@@ -3,9 +3,7 @@
<a>abc</a>
<a>&#x555;</a>
<a>&#xAAAA;</a>
- <a>&#xAAAAA;</a>
<b>abc</b>
<b>a&#x555;c</b>
<b>&#xAAAA;bc</b>
- <b>ab&#xAAAAA;</b>
</t:root>
diff --git a/tests/cxx/tree/encoding/char/utf-8/test.xml b/tests/cxx/tree/encoding/char/utf-8/test.xml
index a6e5d99..0d3e27a 100644
--- a/tests/cxx/tree/encoding/char/utf-8/test.xml
+++ b/tests/cxx/tree/encoding/char/utf-8/test.xml
@@ -5,11 +5,9 @@
<a>abc</a>
<a>&#x555;</a>
<a>&#xAAAA;</a>
- <a>&#xAAAAA;</a>
<b>abc</b>
<b>a&#x555;c</b>
<b>&#xAAAA;bc</b>
- <b>ab&#xAAAAA;</b>
</t:root>
diff --git a/tests/cxx/tree/encoding/char/utf-8/test.xsd b/tests/cxx/tree/encoding/char/utf-8/test.xsd
index 6c32a32..d5ee868 100644
--- a/tests/cxx/tree/encoding/char/utf-8/test.xsd
+++ b/tests/cxx/tree/encoding/char/utf-8/test.xsd
@@ -9,7 +9,6 @@
abc
a&#x555;c
&#xAAAA;bc
- ab&#xAAAAA;
</documentation>
</annotation>
@@ -17,7 +16,6 @@
<enumeration value="abc"/>
<enumeration value="a&#x555;c"/>
<enumeration value="&#xAAAA;bc"/>
- <enumeration value="ab&#xAAAAA;"/>
</restriction>
</simpleType>