summaryrefslogtreecommitdiff
path: root/tests/test_write.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2011-12-20 09:45:10 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2011-12-20 09:45:10 +0000
commita0769dfe380ad7e4bb3c47dc6b32099e3a4918be (patch)
tree41072780c1afaa7a16797ed73aece4cab3eeec28 /tests/test_write.cpp
parent5a312a8ea8ab78c9cf8eba7cb299dafb6985800c (diff)
Introduced encoding_latin1 support (conversion on loading, conversion on saving, encoding name in declaration in document::save)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@829 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_write.cpp')
-rw-r--r--tests/test_write.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_write.cpp b/tests/test_write.cpp
index 094bf59..93f5bd9 100644
--- a/tests/test_write.cpp
+++ b/tests/test_write.cpp
@@ -189,6 +189,8 @@ TEST(write_encodings)
{
CHECK(v.size() == 10 && v[0] == '<' && v[1] == 0x54 && v[2] == 0xA2 && v[3] == 0x20AC && v[4] == 0xd852 && v[5] == 0xdf62 && v[6] == ' ' && v[7] == '/' && v[8] == '>' && v[9] == '\n');
}
+
+ CHECK(test_write_narrow(doc, format_default, encoding_latin1, "<\x54\xA2?? />\n", 9));
}
#ifdef PUGIXML_WCHAR_MODE