|
|
|
@ -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 <stdlib.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
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){
|
|
|
|
|
|
|
|
|
|