List impl minor cleanups

This commit is contained in:
Dan Buch 2016-04-17 18:59:25 -04:00
parent 80b8ecc4fa
commit 58a2ed31f4
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC
2 changed files with 1 additions and 7 deletions

View File

@ -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++;
} }

View File

@ -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);