Commit 3fc9299b authored by Lele Gaifax's avatar Lele Gaifax

Add simple test for issue #1336

parent 11defb7a
......@@ -339,6 +339,17 @@ TEST(PrettyWriter, MoveCtor) {
}
#endif
TEST(PrettyWriter, Issue_1336) {
char buf[100] = "Hello";
StringBuffer buffer;
PrettyWriter<StringBuffer> writer(buffer);
writer.String(buf);
EXPECT_STREQ("\"Hello\"", buffer.GetString());
EXPECT_TRUE(writer.IsComplete()); \
}
#ifdef __clang__
RAPIDJSON_DIAG_POP
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment