From 8fcc65bf581b6da1c3fc04a5c39222f2dbdce08f Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Fri, 15 Apr 2016 19:51:50 +0800 Subject: [PATCH] Adjust ScanWriteUnescapedString test case --- test/unittest/writertest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unittest/writertest.cpp b/test/unittest/writertest.cpp index cd0a32e..af09f8b 100644 --- a/test/unittest/writertest.cpp +++ b/test/unittest/writertest.cpp @@ -96,7 +96,8 @@ TEST(Writer, String) { } TEST(Writer, ScanWriteUnescapedString) { - const char json[] = "[\" \\\"\"]"; + const char json[] = "[\" \\\"0123456789ABCDEF\"]"; + // ^ scanning stops here. char buffer2[sizeof(json) + 32]; // Use different offset to test different alignments