Add comments.

This commit is contained in:
Victor Zverovich
2012-12-10 20:37:35 -08:00
parent 14e0f87d50
commit 0996e98727
3 changed files with 37 additions and 12 deletions
+9
View File
@@ -445,3 +445,12 @@ TEST(FormatterTest, FormatStringFromSpeedTest) {
<< 1.234 << 42 << 3.13 << "str"
<< reinterpret_cast<void*>(1000) << 'X'));
}
TEST(FormatterTest, Formatter) {
Formatter format;
format("Current point:\n");
format("({0:+f}, {1:+f})\n") << -3.14 << 3.14;
EXPECT_STREQ("Current point:\n(-3.140000, +3.140000)\n", format.c_str());
}
// TODO: test Buffer