diff options
Diffstat (limited to 'src/sord_test.c')
-rw-r--r-- | src/sord_test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sord_test.c b/src/sord_test.c index 5eeb6d6..6c74017 100644 --- a/src/sord_test.c +++ b/src/sord_test.c @@ -684,9 +684,10 @@ main(int argc, char** argv) } sord_iter_free(iter); + // Erase the first tuple (an element in the default graph) iter = sord_begin(sord); - if (!sord_erase(sord, iter)) { - return test_fail("Succesfully erased iterator on empty model\n"); + if (sord_erase(sord, iter)) { + return test_fail("Failed to erase begin iterator on non-empty model\n"); } // Ensure only the other graph is left |