mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-28 03:20:15 +01:00
typo fixed for the unit test implementation
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user