We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33a9f58 commit 84a0356Copy full SHA for 84a0356
test/unittest/writertest.cpp
@@ -100,6 +100,19 @@ TEST(Writer, String) {
100
#endif
101
}
102
103
+TEST(Writer, Issue_889) {
104
+ char buf[100] = "Hello";
105
+
106
+ StringBuffer buffer;
107
+ Writer<StringBuffer> writer(buffer);
108
+ writer.StartArray();
109
+ writer.String(buf);
110
+ writer.EndArray();
111
112
+ EXPECT_STREQ("[\"Hello\"]", buffer.GetString());
113
+ EXPECT_TRUE(writer.IsComplete()); \
114
+}
115
116
TEST(Writer, ScanWriteUnescapedString) {
117
const char json[] = "[\" \\\"0123456789ABCDEF\"]";
118
// ^ scanning stops here.
0 commit comments