List impl minor cleanups
This commit is contained in:
parent
80b8ecc4fa
commit
58a2ed31f4
@ -237,7 +237,7 @@ void List_dump(List *list)
|
|||||||
}
|
}
|
||||||
printf("`");
|
printf("`");
|
||||||
}
|
}
|
||||||
printf("-> [%d] ListNode .value = %p (%s)\n", i, cur->value, cur->value);
|
printf("-> [%d] ListNode .value = %p (%s)\n", i, cur->value, (char *)cur->value);
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
#undef NDEBUG
|
|
||||||
#include "../minunit.h"
|
#include "../minunit.h"
|
||||||
#include <lcthw/list_algos.h>
|
#include <lcthw/list_algos.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -83,11 +82,6 @@ char *all_tests()
|
|||||||
{
|
{
|
||||||
mu_suite_start();
|
mu_suite_start();
|
||||||
|
|
||||||
int i = 0;
|
|
||||||
for(i = 0; i < NUM_VALUES; i++) {
|
|
||||||
printf("%s -> %p\n", values[i], values[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
mu_run_test(test_bubble_sort);
|
mu_run_test(test_bubble_sort);
|
||||||
mu_run_test(test_merge_sort);
|
mu_run_test(test_merge_sort);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user