typo fixed for the unit test implementation

This commit is contained in:
Kosta 2014-09-01 12:40:28 +02:00
parent 056d0dafe4
commit 88debcf02e

View File

@ -1092,7 +1092,7 @@ static void TestShortStringOptimization(const char* str) {
rapidjson::Document::AllocatorType& allocator = doc.GetAllocator(); rapidjson::Document::AllocatorType& allocator = doc.GetAllocator();
rapidjson::Value objVal(rapidjson::kObjectType); rapidjson::Value objVal(rapidjson::kObjectType);
objVal.AddMember(str, str, allocator); objVal.AddMember(str, len, allocator);
EXPECT_TRUE(objVal.HasMember(str)); EXPECT_TRUE(objVal.HasMember(str));
const rapidjson::Value& member = objVal[str]; const rapidjson::Value& member = objVal[str];