This commit is contained in:
+2
-2
@@ -2,7 +2,7 @@
|
||||
#include <criterion/internal/assert.h>
|
||||
#include <stdlib.h>
|
||||
#include "../Chains_across_the_Island/Fundamentals/basics/basics.h"
|
||||
|
||||
#include <stdio.h>
|
||||
// Test pour list_append
|
||||
Test(basics_suite, test_append) {
|
||||
struct list *l = NULL;
|
||||
@@ -31,6 +31,7 @@ Test(basics_suite, test_count) {
|
||||
l = list_append(l, 30);
|
||||
|
||||
cr_assert_eq(list_count(l), 3, "La liste doit contenir 3 éléments.");
|
||||
|
||||
list_destroy(l);
|
||||
}
|
||||
|
||||
@@ -69,7 +70,6 @@ Test(basics_suite, test_get){
|
||||
cr_assert_null(rslt, "Le pointeur doit etre null");
|
||||
|
||||
list_destroy(l);
|
||||
// On ne détruit SURTOUT PAS rslt ici, car il appartient déjà à l !
|
||||
}
|
||||
|
||||
//Test list_find
|
||||
|
||||
Reference in New Issue
Block a user