| 592 CX_TEST_ASSERT(*y == 11); |
592 CX_TEST_ASSERT(*y == 11); |
| 593 |
593 |
| 594 // removing the element |
594 // removing the element |
| 595 CX_TEST_ASSERT(0 == cxMapRemove(map, cx_strn(key->data, key->len))); |
595 CX_TEST_ASSERT(0 == cxMapRemove(map, cx_strn(key->data, key->len))); |
| 596 key = cxKvListGetKey(list, 1); |
596 key = cxKvListGetKey(list, 1); |
| 597 CX_TEST_ASSERT(0 == cx_strcmp(CX_STR("efg"), cx_strn(key->data, key->len))); |
597 CX_TEST_ASSERT(0 == cx_strcmp("efg", cx_strn(key->data, key->len))); |
| 598 |
598 |
| 599 // remove the key of element |
599 // remove the key of element |
| 600 CX_TEST_ASSERT(0 == cxKvListRemoveKey(list, 1)); |
600 CX_TEST_ASSERT(0 == cxKvListRemoveKey(list, 1)); |
| 601 CX_TEST_ASSERT(NULL == cxKvListGetKey(list, 1)); |
601 CX_TEST_ASSERT(NULL == cxKvListGetKey(list, 1)); |
| 602 |
602 |