diff --git a/testsae102.c b/testsae102.c index b10e7da..5eb6d98 100644 --- a/testsae102.c +++ b/testsae102.c @@ -1,14 +1,41 @@ /** - *@file : TESTSAE2.c - *@author : Erwan.M - *@date : 11/12/22 - * sujet : SAE 1.02 - *@brief : Résumé : Fichier .c regroupant la fonction main pour lancer le programme et les tests + * \file sae102.h + * \author Erwan. M & Corentin. L + * \date 11/12/22 + * \brief Résumé : Fichier .c regroupant la fonction main pour lancer le programme et les tests */ #include "sae102.h" -#include -#include + +void testListeNouv(void){ + + ListeDept l; + + l = Listenouv(); + + if (l == NULL) printf("OK\n"); + + else printf("Bug...\n"); + +} + +void testInsererEnTete(void){ + + char departement[22], nomResp[22]; + + int nbP; + + ListeDept l = Listenouv(); + + strcpy(departement, "infotest\0"); + + nbP = 50; + + strcpy(nomResp, "Mireille Mathieu\0"); + + l = insererEnTete(l, departement, nbP, nomResp); + +} int main(void){