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"); |