~kdsch/c-modules

cea49675de3121cdb86816556d01f16028762d17 — Karl Schultheisz 5 months ago 6d9b161
main: assert return value of array_append
1 files changed, 2 insertions(+), 2 deletions(-)

M main.c
M main.c => main.c +2 -2
@@ 5,9 5,9 @@ harness_array(void)
{
	struct array a;
	array_init(&a);
	array_append(&a, 42);
	assert(array_append(&a, 42) == STATUS_OK);
	assert(a.length == 1);
	array_append(&a, 42);
	assert(array_append(&a, 42) == STATUS_OK);
	assert(a.length == 2);
	array_free(&a);
	assert(a.length == 0);