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

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

#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "naive_universe.h"
Include dependency graph for test-naive-universe.c:

Functions

void test_getcell ()
 Test of the naive_universe_get_cell function.
 
void test_print ()
 Test of the naive_universe_print function.
 
void test_universeupdatecell ()
 Test of the naive_universe_update_cell function.
 
int main (void)
 

Variables

char CELLS0 [] = ".0.....0..000.."
 
char CELLS1 [] = "..............."
 
char * CELLS1_check = "..............."
 
char CELLS2 [] = ".......0......."
 
char * CELLS2_check = ".......0......."
 
universe u
 

Detailed Description

Test executable source code for a naive 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-02-24

Contains the following tests:

These functions are implemented in the naive_universe.h and naive_universe.c source files.

The further-defined string constants are used by the different tests.