summaryrefslogtreecommitdiff
path: root/tests/test_unicode.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-29 07:17:30 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-29 07:17:30 +0000
commitfc602fd37554f5e2d58fcee71a58e380d23d22d4 (patch)
tree2955c7999c2053c06a81c21a79fd55670bb6940e /tests/test_unicode.cpp
parent0640f87859a5a676b41783be4741a62f4d1ea266 (diff)
tests: Supported all pugixml compilation modes
git-svn-id: http://pugixml.googlecode.com/svn/trunk@191 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_unicode.cpp')
-rw-r--r--tests/test_unicode.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_unicode.cpp b/tests/test_unicode.cpp
index e7adc47..ce48edb 100644
--- a/tests/test_unicode.cpp
+++ b/tests/test_unicode.cpp
@@ -7,6 +7,7 @@ inline wchar_t wchar_cast(unsigned int value)
return static_cast<wchar_t>(value); // to avoid C4310 on MSVC
}
+#ifndef PUGIXML_NO_STL
TEST(as_utf16)
{
// valid 1-byte, 2-byte and 3-byte inputs
@@ -35,6 +36,7 @@ TEST(as_utf8)
CHECK(as_utf8(L"\x97624 \x1003ff") == "\xf2\x97\x98\xa4 \xf4\x80\x8f\xbf");
#endif
}
+#endif
TEST_XML(parse_bom_utf8, "\xef\xbb\xbf<node/>")
{