Fix BasicWriter::write without formatting arguments on C++11 (#109)

This commit is contained in:
Victor Zverovich
2015-02-16 14:32:38 -08:00
parent 040b8e7e06
commit bd133382f0
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -227,6 +227,12 @@ TEST(WriterTest, Data) {
EXPECT_EQ("42", std::string(w.data(), w.size()));
}
TEST(WriterTest, WriteWithoutArgs) {
MemoryWriter w;
w.write("test");
EXPECT_EQ("test", std::string(w.data(), w.size()));
}
TEST(WriterTest, WriteInt) {
CHECK_WRITE(42);
CHECK_WRITE(-42);