From 5978412d5c6d8c47732347629718e822df2029fa Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 3 Sep 2013 15:48:17 -0700 Subject: [PATCH] Test writing strings. --- format_test.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/format_test.cc b/format_test.cc index 62dff019..34197665 100644 --- a/format_test.cc +++ b/format_test.cc @@ -254,6 +254,10 @@ TEST(WriterTest, WriteDouble) { EXPECT_EQ("-4.2", str(Writer() << -4.2)); } +TEST(WriterTest, WriteString) { + EXPECT_EQ("abc", str(Writer() << "abc")); +} + class Date { int year_, month_, day_; public: