Projet

Général

Profil

« Précédent | Suivant » 

Révision 114

Ajouté par jcguifodjo il y a environ 4 ans

Implémentation de la fonction tram_cmp() et Ajout des tests unitaires de trame_cmp() à la fonction tests_unitaires()

Voir les différences:

main.c
"$GPZDA,141914.00,01,02,2006,00,00*69",
0};
int trame_cmp(char* a,char* b){
return 0;
int trame_cmp(char* trame,char* type)
{
int i=0,d=1;
while(type[i]!='\0')
{
if(trame[i+1]!=type[i] )
{
d=0;
}
i++;
}
return d;
}
//Fonction ? modifier !!!!!
......
printf ("Erreur Test unitaire basique.\n");
exit(-1);
}
/*if (trame_cmp("$GPGGA suite chaine","GPGGA")!=1){
if (trame_cmp("$GPGGA suite chaine","GPGGA")!=1){
printf ("Erreur Test unitaire trame_cmp.\n");
exit(-1);
}
......
if (trame_cmp("$APRMC...", "GPGGA")!=0){
printf ("Erreur Test unitaire trame_cmp.\n");
exit(-1);
}*/
}
}
// Ne pas modifier cette fonction

Formats disponibles : Unified diff