We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d16e10 commit 009a3adCopy full SHA for 009a3ad
src/test_lib_json/main.cpp
@@ -222,6 +222,12 @@ JSONTEST_FIXTURE(ValueTest, objects) {
222
did = object1_.removeMember("some other id", &got);
223
JSONTEST_ASSERT_EQUAL(Json::Value("bar"), got);
224
JSONTEST_ASSERT_EQUAL(false, did);
225
+
226
+ object1_["some other id"] = "foo";
227
+ Json::Value* gotPtr = nullptr;
228
+ did = object1_.removeMember("some other id", gotPtr);
229
+ JSONTEST_ASSERT_EQUAL(nullptr, gotPtr);
230
+ JSONTEST_ASSERT_EQUAL(true, did);
231
}
232
233
JSONTEST_FIXTURE(ValueTest, arrays) {
0 commit comments