Implement string padding.

This commit is contained in:
Victor Zverovich
2013-12-31 09:43:32 -08:00
parent fb7b11ead0
commit 641df95491
3 changed files with 57 additions and 17 deletions
+4
View File
@@ -442,6 +442,10 @@ TEST(WriterTest, pad) {
EXPECT_EQ("2012-01-09", f.str());
}
TEST(WriterTest, PadString) {
EXPECT_EQ("test ", str(Writer() << pad("test", 8)));
}
TEST(WriterTest, NoConflictWithIOManip) {
using namespace std;
using namespace fmt;