1
0
forked from 0ad/0ad

Fix XML tests

This was SVN commit r6774.
This commit is contained in:
Ykkrosh 2009-03-24 21:04:20 +00:00
parent 228859da99
commit f69c5fc25e

View File

@ -4,11 +4,8 @@
#include "lib/file/io/write_buffer.h"
#include <xercesc/framework/MemBufInputSource.hpp>
#include <libxml/parser.h>
XERCES_CPP_NAMESPACE_USE
class TestXeroXMB : public CxxTest::TestSuite
{
private:
@ -98,7 +95,7 @@ public:
void test_iso88591()
{
XMBFile xmb (parse("<?xml version=\"1.0\" encoding=\"iso88591\"?><foo x='&#x1234;\xE1\x88\xB4'>&#x1234;\xE1\x88\xB4</foo>"));
XMBFile xmb (parse("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?><foo x='&#x1234;\xE1\x88\xB4'>&#x1234;\xE1\x88\xB4</foo>"));
CStrW text;
text = xmb.GetRoot().GetText();