summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/rapidjson/test/unittest/stringbuffertest.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-08-06 14:23:30 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-08-06 14:23:30 +0200
commita8ebc114372476314a3817daa010b71f85d329e1 (patch)
tree22082431d0e622cae8fda7dfa04da36bf31879be /3rdparty/rapidjson/test/unittest/stringbuffertest.cpp
parent3917850b6197950e5671f4d3b9cb0b9c921b798d (diff)
update rapidjson (nw)
Diffstat (limited to '3rdparty/rapidjson/test/unittest/stringbuffertest.cpp')
-rw-r--r--3rdparty/rapidjson/test/unittest/stringbuffertest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/3rdparty/rapidjson/test/unittest/stringbuffertest.cpp b/3rdparty/rapidjson/test/unittest/stringbuffertest.cpp
index 9be98fce268..ded513cddcf 100644
--- a/3rdparty/rapidjson/test/unittest/stringbuffertest.cpp
+++ b/3rdparty/rapidjson/test/unittest/stringbuffertest.cpp
@@ -37,6 +37,13 @@ TEST(StringBuffer, Put) {
EXPECT_STREQ("A", buffer.GetString());
}
+TEST(StringBuffer, PutN_Issue672) {
+ GenericStringBuffer<UTF8<>, MemoryPoolAllocator<> > buffer;
+ EXPECT_EQ(0, buffer.GetSize());
+ rapidjson::PutN(buffer, ' ', 1);
+ EXPECT_EQ(1, buffer.GetSize());
+}
+
TEST(StringBuffer, Clear) {
StringBuffer buffer;
buffer.Put('A');