From 5019b6b0f40a8605f07de1f4d2ceb8923048e61d Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 30 Apr 2014 07:46:16 -0700 Subject: [PATCH] Fix tests, take 2. --- format-test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/format-test.cc b/format-test.cc index e3557249..52535aec 100644 --- a/format-test.cc +++ b/format-test.cc @@ -234,14 +234,14 @@ TEST(UtilTest, CountDigits) { TEST(UtilTest, UTF16ToUTF8) { std::string s = "ёжик"; fmt::internal::UTF16ToUTF8 u(L"\x0451\x0436\x0438\x043A"); - EXPECT_EQ(s, str(u)); + EXPECT_EQ(s, fmt::str(u)); EXPECT_EQ(s.size(), u.size()); } TEST(UtilTest, UTF8ToUTF16) { std::string s = "лошадка"; fmt::internal::UTF8ToUTF16 u(s.c_str()); - EXPECT_EQ(L"\x043B\x043E\x0448\x0430\x0434\x043A\x0430", str(u)); + EXPECT_EQ(L"\x043B\x043E\x0448\x0430\x0434\x043A\x0430", fmt::str(u)); EXPECT_EQ(7, u.size()); }