From 78209468a06fbb960a704a959c0d1f40da190c63 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 1 May 2014 07:27:29 -0700 Subject: [PATCH] Test UTF16ToUTF8::Convert. --- format-test.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/format-test.cc b/format-test.cc index 0d0ab5bc..989b401e 100644 --- a/format-test.cc +++ b/format-test.cc @@ -269,7 +269,10 @@ TEST(UtilTest, UTF8ToUTF16Error) { "cannot convert string from UTF-8 to UTF-16"); } -// TODO: test UTF16ToUTF8::Convert +TEST(UtilTest, UTF16ToUTF8Convert) { + fmt::internal::UTF16ToUTF8 u; + EXPECT_EQ(ERROR_INVALID_PARAMETER, u.Convert(0)); +} #endif // _WIN32 TEST(UtilTest, StrError) {