IN101 project on Conway's Game of Life
|
Test executable source code for a linked list implementation of Conway's game of life universe structure. More...
Functions | |
void | test_linkedlist_insert () |
Test of the linked_list_insert function. More... | |
void | test_linkedlist_delete () |
void | test_universe_getcell () |
Test of the list_universe_get_cell function. More... | |
void | test_universe_print () |
Test of the print_list_cells function. | |
int | main (void) |
Variables | |
linked_list | list = NULL |
universe | u |
Test executable source code for a linked list implementation of Conway's game of life universe structure.
void test_linkedlist_insert | ( | ) |
Test of the linked_list_insert
function.
The test will attemp to build the sorted list (0,0) (1,0) (1,8) (2,7) (5,1) (5,3) (5,6)
with a random insert order.
Inserting at the beginning and the end of the list and attempting to insert a doublon will be tested.
void test_universe_getcell | ( | ) |
Test of the list_universe_get_cell
function.
The test will use the list generated by the test_linkedlist_insert
function and test a series of cells.