summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-11-27 00:25:16 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-11-27 00:25:16 -0800
commit93c3ab46494f35c390b40220519d83634e4e347f (patch)
tree68616e5f1c2a5175e4a27645761e891429364ed5 /tests
parent4b8da65be9f5adb340d7edf32362bdb24f20833b (diff)
parent10c9206de2ae4079ca1239ff44cee3fdb1deadf5 (diff)
Merge branch 'master' into compact
Diffstat (limited to 'tests')
-rw-r--r--tests/data/тест.xml1
-rw-r--r--tests/test_document.cpp10
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/data/тест.xml b/tests/data/тест.xml
new file mode 100644
index 0000000..6187c16
--- /dev/null
+++ b/tests/data/тест.xml
@@ -0,0 +1 @@
+<node/> \ No newline at end of file
diff --git a/tests/test_document.cpp b/tests/test_document.cpp
index 4228602..f57465f 100644
--- a/tests/test_document.cpp
+++ b/tests/test_document.cpp
@@ -323,6 +323,16 @@ TEST(document_load_file_wide_ascii)
CHECK_NODE(doc, STR("<node />"));
}
+#if !defined(__DMC__) && !defined(__MWERKS__) && !(defined(__MINGW32__) && defined(__STRICT_ANSI__) && __GNUC__ * 100 + __GNUC_MINOR__ <= 405)
+TEST(document_load_file_wide_unicode)
+{
+ pugi::xml_document doc;
+
+ CHECK(doc.load_file(L"tests/data/\x0442\x0435\x0441\x0442.xml"));
+ CHECK_NODE(doc, STR("<node />"));
+}
+#endif
+
TEST(document_load_file_wide_out_of_memory)
{
test_runner::_memory_fail_threshold = 1;