From 88debcf02edadd8ad7c0a2a8b566bb40414541d0 Mon Sep 17 00:00:00 2001 From: Kosta Date: Mon, 1 Sep 2014 12:40:28 +0200 Subject: [PATCH] typo fixed for the unit test implementation --- test/unittest/valuetest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unittest/valuetest.cpp b/test/unittest/valuetest.cpp index f5d06c3..8e3fe8f 100644 --- a/test/unittest/valuetest.cpp +++ b/test/unittest/valuetest.cpp @@ -1092,7 +1092,7 @@ static void TestShortStringOptimization(const char* str) { rapidjson::Document::AllocatorType& allocator = doc.GetAllocator(); rapidjson::Value objVal(rapidjson::kObjectType); - objVal.AddMember(str, str, allocator); + objVal.AddMember(str, len, allocator); EXPECT_TRUE(objVal.HasMember(str)); const rapidjson::Value& member = objVal[str];