| … | … | @@ -306,12 +306,13 @@ void BasicDeleteUTest::test_key_deletion(void) |
| 306 | 306 | printf("key=%s\n", k->get_name().c_str()); |
| 307 | 307 | TS_ASSERT_EQUALS(hs.size(), 3); |
| 308 | 308 | |
| 309 | | // Remove one of the keys. But MonoStorage will not allow this, |
| 310 | | // it explicitly observes the key is in use, and blocks the removal. |
| 309 | // Remove one of the keys. But neither the AtomSpace, nor |
| 310 | // MonoStorage allow this, and it stays both in the AtomSpace, |
| 311 | // and in storage. |
| 311 | 312 | store->remove_atom(as, kb); |
| 312 | 313 | as->extract_atom(kb); |
| 313 | 314 | // +1 for *-IsKeyFlag-* |
| 314 | | TS_ASSERT_EQUALS(as->get_size(), 5); |
| 315 | TS_ASSERT_EQUALS(as->get_size(), 6); |
| 315 | 316 | |
| 316 | 317 | // Verify the key was NOT deleted by loading only PredicateNodes. |
| 317 | 318 | delete as; |