IN101 project on Conway's Game of Life
Functions | Variables
test-list-universe.c File Reference

Test executable source code for a linked list implementation of Conway's game of life universe structure. More...

#include <assert.h>
#include "list_universe.h"
Include dependency graph for test-list-universe.c:

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
 

Detailed Description

Test executable source code for a linked list implementation of Conway's game of life universe structure.

Author
Victor Colomb (vic.c.nosp@m.ol@h.nosp@m.otmai.nosp@m.l.fr)
Date
2021-03-09

Function Documentation

◆ test_linkedlist_insert()

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.

◆ test_universe_getcell()

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.