diff options
author | Kosta <konstantin.baumann@autodesk.com> | 2014-09-01 14:40:28 +0400 |
---|---|---|
committer | Kosta <konstantin.baumann@autodesk.com> | 2014-09-01 14:40:28 +0400 |
commit | 88debcf02edadd8ad7c0a2a8b566bb40414541d0 (patch) | |
tree | 6295abb862da9492bdc15cb01c2e828f70944d84 | |
parent | 056d0dafe4854a8136d7dc17dfbb5e4551176ce9 (diff) |
typo fixed for the unit test implementation
-rw-r--r-- | test/unittest/valuetest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unittest/valuetest.cpp b/test/unittest/valuetest.cpp index f5d06c31..8e3fe8f2 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];
|