IN101 project on Conway's Game of Life
|
We provide tests for all implemented functions.
Compile and launch all tests using make launch-tests
.
naive_universe_get_cell
: the test creates a universe from a string constant and checks that the function applied to three different cells returns the correct character.naive_universe_print
: the test prints a universe to the console, the user has to verify that the printing is correct.naive_update_cell
: the test updates a cell of a universe and verifies the new string.naive_conway_load
: the test will attempt to load the universe from data/glider.txt
and will check that the parameters of the returned structure are correct.naive_count_neighbor
: the test will load the universe from data/glider.txt
and checks several neighbor counts with and without considering the universe as a torus.naive_step
: the test will use the data/archive-test
directory that contains 512 source textfiles and their next step solution. naive_step
function and compare the return's cell table with the given exact solution.naive_pgm_generate
: the test will load data/glider.txt
universe and generate the associated image.linked_list_insert
: the test will create a list using the function and check each cell's elements against a hardcoded list.linked_universe_get_cell
: the test will use the previously generated list to test a series of cells using the function.print_list_cell
: the test prints a universe to the console, the user has to verify that the printing is correct.test-list-loader.c
list_conway_load
: the test will attempt to load the universe from data/glider.txt
and will check that the parameters of the returned structure are correct.list_count_neighbor
: the test will load the universe from data/glider.txt
and checks several neighbor counts with and without considering the universe as a torus.list_step
: the test will use the data/archive-test
directory that contains 512 source textfiles and their next step solution. list_step
function and compare the return's cell table with the given exact solution.list_pgm_generate
: the test will load data/glider.txt
universe and generate the associated image.