Test writing strings.

This commit is contained in:
Victor Zverovich 2013-09-03 15:48:17 -07:00
parent a4fd71f4ba
commit 5978412d5c

View File

@ -254,6 +254,10 @@ TEST(WriterTest, WriteDouble) {
EXPECT_EQ("-4.2", str(Writer() << -4.2)); EXPECT_EQ("-4.2", str(Writer() << -4.2));
} }
TEST(WriterTest, WriteString) {
EXPECT_EQ("abc", str(Writer() << "abc"));
}
class Date { class Date {
int year_, month_, day_; int year_, month_, day_;
public: public: