mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-05-05 08:35:28 +02:00
tests: Add a comment
This commit is contained in:
parent
d76fe5687d
commit
9a629bc5e1
@ -214,6 +214,7 @@ JSONTEST_FIXTURE(ValueTest, objects) {
|
|||||||
const Json::Value* foundUnknownId = object1_.find(unknownIdKey, unknownIdKey + strlen(unknownIdKey));
|
const Json::Value* foundUnknownId = object1_.find(unknownIdKey, unknownIdKey + strlen(unknownIdKey));
|
||||||
JSONTEST_ASSERT_EQUAL(nullptr, foundUnknownId);
|
JSONTEST_ASSERT_EQUAL(nullptr, foundUnknownId);
|
||||||
|
|
||||||
|
// Access through demand()
|
||||||
const char yetAnotherIdKey[] = "yet another id";
|
const char yetAnotherIdKey[] = "yet another id";
|
||||||
const Json::Value* foundYetAnotherId = object1_.find(yetAnotherIdKey, yetAnotherIdKey + strlen(yetAnotherIdKey));
|
const Json::Value* foundYetAnotherId = object1_.find(yetAnotherIdKey, yetAnotherIdKey + strlen(yetAnotherIdKey));
|
||||||
JSONTEST_ASSERT_EQUAL(nullptr, foundYetAnotherId);
|
JSONTEST_ASSERT_EQUAL(nullptr, foundYetAnotherId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user