From 8c53a137b30ecaafb2cee4a458ac33377ef10581 Mon Sep 17 00:00:00 2001 From: leiyu3 Date: Wed, 14 Sep 2022 17:16:22 -0400 Subject: add test file --- linked_list_test.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 linked_list_test.c (limited to 'linked_list_test.c') diff --git a/linked_list_test.c b/linked_list_test.c new file mode 100644 index 0000000..a71a1ff --- /dev/null +++ b/linked_list_test.c @@ -0,0 +1,29 @@ +#include +#include +#include "linked_list.h" + +int main(){ + + node* ll = malloc(sizeof(node)); + ll->value = 1; + ll->next = NULL; + + + print_ll(ll); + reverse_ll(&ll); + print_ll(ll); + /* delete_node(&ll, 0); */ + + /* print_ll(ll); */ + /* printf("The length of ll is %d\n", count_ll(ll)); */ + + /* delete_node(&ll, 0); */ + /* print_ll(ll); */ + /* printf("The length of ll is %d\n", count_ll(ll)); */ + /* printf("%d\n", search_node(ll, 10)->value); */ + + /* printf("%d\n", get_value(ll, 3)); */ + + /* free_ll(ll); */ + return 0; +} -- cgit v1.2.3