Add support for wide strings.

This commit is contained in:
Victor Zverovich
2013-09-04 22:03:37 -07:00
parent 6d33ce9f81
commit bc6c1c17cc
3 changed files with 86 additions and 41 deletions
+4
View File
@@ -1028,6 +1028,10 @@ TEST(FormatterTest, CustomFormat) {
EXPECT_EQ("42", str(Format("{0}") << Answer()));
}
TEST(FormatterTest, WideFormatString) {
EXPECT_EQ(L"42", str(Format(L"{}") << 42));
}
TEST(FormatterTest, FormatStringFromSpeedTest) {
EXPECT_EQ("1.2340000000:0042:+3.13:str:0x3e8:X:%",
str(Format("{0:0.10f}:{1:04}:{2:+g}:{3}:{4}:{5}:%")