Skip to content
Snippets Groups Projects
Commit a1b5978a authored by Arnaud Albiez's avatar Arnaud Albiez
Browse files

Ajout d'un fichier test avec les test unitaire

parent 56bafcc5
No related merge requests found
test.c 0 → 100644
#include <stdio.h>
#include "grid.h"
void test_grid_get_cell()
{
// test
struct Grid* grid = grid_new(5, 5);
// creation de la grille de test
if (get_grid(grid, 2, 3) == NONE)
{
printf("Succès\n");
return;
}
else
{
printf("Echèc\n");
return;
}
}
int main(void){
test_grid_get_cell();
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment