| … | … | @@ -324,6 +324,8 @@ void SimpleBasicDeleteUTest::test_key_deletion(void) |
| 324 | 324 | |
| 325 | 325 | // Remove one of the keys |
| 326 | 326 | store->remove_atom(as, kb); |
| 327 | as->extract_atom(kb); |
| 328 | TS_ASSERT_EQUALS(as->get_size(), 4); |
| 327 | 329 | |
| 328 | 330 | // Verify the key was deleted by loading only PredicateNodes. |
| 329 | 331 | as = createAtomSpace(); |
| … | … | @@ -466,9 +468,10 @@ void SimpleBasicDeleteUTest::test_key_corruption(void) |
| 466 | 468 | |
| 467 | 469 | TS_ASSERT_EQUALS(as->get_size(), 6); |
| 468 | 470 | |
| 469 | | // Remove the value .. again. It won't actually be deleted because |
| 470 | | // (Concept "x") is still referenced in a Value on (Concept "b"). |
| 471 | // Remove the value .. again |
| 471 | 472 | store->remove_atom(as, hx); |
| 473 | as->extract_atom(hx); |
| 474 | TS_ASSERT_EQUALS(as->get_size(), 5); |
| 472 | 475 | store->close(); |
| 473 | 476 | store->open(); |
| 474 | 477 | store->load_atomspace(); |