tests/test_json.c

changeset 997
d14f3d5f47d1
parent 996
333155f234c4
child 1000
1aecddf7e209
equal deleted inserted replaced
996:333155f234c4 997:d14f3d5f47d1
358 CX_TEST_ASSERT(obj->allocator == mp->allocator); 358 CX_TEST_ASSERT(obj->allocator == mp->allocator);
359 359
360 // this recursively frees everything 360 // this recursively frees everything
361 cxJsonValueFree(obj); 361 cxJsonValueFree(obj);
362 cxJsonDestroy(&json); 362 cxJsonDestroy(&json);
363 cxMempoolFree(mp);
363 } 364 }
364 } 365 }
365 366
366 CxTestSuite *cx_test_suite_json(void) { 367 CxTestSuite *cx_test_suite_json(void) {
367 CxTestSuite *suite = cx_test_suite_new("json"); 368 CxTestSuite *suite = cx_test_suite_new("json");

mercurial