Skip to content

Commit ee4ea0e

Browse files
committed
delete debug code from test
1 parent ce19001 commit ee4ea0e

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

Diff for: src/test_lib_json/main.cpp

-26
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include <iostream>
21
// Copyright 2007-2010 Baptiste Lepilleur
32
// Distributed under MIT license, or public domain if desired and
43
// recognized in your jurisdiction.
@@ -214,31 +213,6 @@ JSONTEST_FIXTURE(ValueTest, objects) {
214213
JSONTEST_ASSERT_EQUAL(false, did);
215214
}
216215

217-
JSONTEST_FIXTURE(ValueTest, nulls) {
218-
static char const keyWithNulls[] = "key\0with\0nulls";
219-
std::string const strKeyWithNulls(keyWithNulls, sizeof keyWithNulls);
220-
object1_[strKeyWithNulls] = "object1_[keyWithNulls]";
221-
Json::Value::Members f = object1_.getMemberNames();
222-
std::cout << "size:" << f.size() << "\n";
223-
for (int i=0; i<f.size(); ++i) {
224-
std::cout << f[i].size() << ":" << f[i] << "\n";
225-
}
226-
//abort();
227-
Json::Value const& o = object1_;
228-
Json::Value const& temp = o[strKeyWithNulls];
229-
JSONTEST_ASSERT_EQUAL(Json::Value("object1_[keyWithNulls]"), temp);
230-
JSONTEST_ASSERT(object1_.isMember(keyWithNulls, keyWithNulls + strKeyWithNulls.length()));
231-
//JSONTEST_ASSERT(object1_.isMember(keyWithNulls, keyWithNulls + sizeof(keyWithNulls)));
232-
JSONTEST_ASSERT(!object1_.isMember("key"));
233-
234-
Json::Value got;
235-
bool did;
236-
did = object1_.removeMember(strKeyWithNulls, &got);
237-
JSONTEST_ASSERT_EQUAL(Json::Value("object1_[keyWithNulls]"), got);
238-
JSONTEST_ASSERT_EQUAL(true, did);
239-
did = object1_.removeMember(strKeyWithNulls, &got);
240-
JSONTEST_ASSERT_EQUAL(false, did);
241-
}
242216
JSONTEST_FIXTURE(ValueTest, arrays) {
243217
const unsigned int index0 = 0;
244218

0 commit comments

Comments
 (0)