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

Correction des test unitaire

parent 4a4058d5
Branches
No related merge requests found
#include "cester.h"
#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)
CESTER_TEST(test_grid_get_cell, grid,
{
printf("Succès\n");
return;
struct Grid* grid = grid_new(5, 5);
for(int x = 0; x < 5; ++x) {
for(int y = 0; y < 5; ++y) {
cester_assert_equal(NONE, get_grid(grid, x, y));
}
}
}
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