tests/test_properties.c

changeset 993
b642eca4b956
parent 972
a9a1d07a6840
child 1031
8a90552bba29
equal deleted inserted replaced
992:14ca894190fd 993:b642eca4b956
438 // the successfully read k/v-pair is in the map, nevertheless 438 // the successfully read k/v-pair is in the map, nevertheless
439 CX_TEST_ASSERT(cxMapSize(map) == 1); 439 CX_TEST_ASSERT(cxMapSize(map) == 1);
440 char *v = cxMapGet(map, "key1"); 440 char *v = cxMapGet(map, "key1");
441 CX_TEST_ASSERT(!strcmp(v, "value1")); 441 CX_TEST_ASSERT(!strcmp(v, "value1"));
442 442
443 cxMapDestroy(map); 443 cxMapFree(map);
444 cxPropertiesDestroy(&prop); 444 cxPropertiesDestroy(&prop);
445 445
446 CX_TEST_ASSERT(cx_testing_allocator_verify(&talloc)); 446 CX_TEST_ASSERT(cx_testing_allocator_verify(&talloc));
447 } 447 }
448 cx_testing_allocator_destroy(&talloc); 448 cx_testing_allocator_destroy(&talloc);
511 CX_TEST_ASSERT(!cx_strcmp(expected, actual)); 511 CX_TEST_ASSERT(!cx_strcmp(expected, actual));
512 CX_TEST_ASSERT(!strcmp(lk, "property value")); 512 CX_TEST_ASSERT(!strcmp(lk, "property value"));
513 513
514 free(long_key); 514 free(long_key);
515 free(long_value); 515 free(long_value);
516 cxMapDestroy(map); 516 cxMapFree(map);
517 cxPropertiesDestroy(&prop); 517 cxPropertiesDestroy(&prop);
518 518
519 CX_TEST_ASSERT(cx_testing_allocator_verify(&talloc)); 519 CX_TEST_ASSERT(cx_testing_allocator_verify(&talloc));
520 } 520 }
521 cx_testing_allocator_destroy(&talloc); 521 cx_testing_allocator_destroy(&talloc);

mercurial