parent
226a29d9aa
commit
ffe7451fc4
@ -1,17 +1,48 @@
|
||||
/**
|
||||
*@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 "SAE2.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include "sae102.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);
|
||||
|
||||
}
|
||||
|
||||
ListeDept insererEnTete(ListeDept l, char* departement, int nbP, char* nomResp){
|
||||
|
||||
int main(void){
|
||||
|
||||
menuPrincipal();
|
||||
testListeNouv();
|
||||
|
||||
//menuPrincipal();
|
||||
|
||||
}
|
Loading…
Reference in new issue