Some little unit test assert.

release-1.5.4.branch
Vreixo Formoso 15 years ago
parent 6d633caadb
commit d894d3719b

@ -612,6 +612,10 @@ void test_iso_dir_iter_take()
CU_ASSERT_EQUAL(result, 1);
CU_ASSERT_EQUAL(dir->nchildren, 1);
CU_ASSERT_PTR_EQUAL(dir->children, node1);
/* we can't take two times without next()!! */
result = iso_dir_iter_take(iter);
CU_ASSERT_TRUE(result < 0); /* should fail */
/* next should still work */
result = iso_dir_iter_next(iter, &node);

Loading…
Cancel
Save