diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-11-24 18:27:54 -0800 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-11-24 18:27:54 -0800 |
commit | 3e1ae89cf6f750ac088a3b73ed6ef1559e2d436f (patch) | |
tree | 61262ddda7a8e46d264478f590257084a6ebf7e1 | |
parent | 125aa55061ccde4ae7351a9a6c7270a15c9e0204 (diff) |
tests: Add a test for load_file with wide Unicode name
-rw-r--r-- | tests/data/тест.xml | 1 | ||||
-rw-r--r-- | tests/test_document.cpp | 10 |
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..5991937 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__) +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; |