Révision 47
Ajouté par Mafall FALL il y a environ 3 ans
main.c | ||
---|---|---|
|
||
while ( a==1 && (&type[i])!=0)
|
||
{
|
||
if ( (&trame[i])!=&type[i-1])
|
||
if ( (&trame[i])!=&type[i-1])/********/
|
||
{
|
||
a=0;
|
||
printf("a= %d",a);
|
||
... | ... | |
|
||
|
||
|
||
}
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
//Fonction ? modifier !!!!!
|
||
... | ... | |
int result=0;
|
||
int i=0;
|
||
while (trames[i] && type[i])
|
||
result = tram_cmp (&trames[i++], &type[i++]);
|
||
result = trame_cmp (&trames[i++], &type[i++]);
|
||
|
||
|
||
|
||
... | ... | |
if (trame_cmp("$GPGGA suite chaine","GPGGA")!=1){
|
||
printf ("Erreur Test unitaire trame_cmp.\n");
|
||
exit(-1);
|
||
}
|
||
}
|
||
}
|
||
if (trame_cmp("$GPRMC suite chaine","GPGGA")!=0){
|
||
printf ("Erreur Test unitaire trame_cmp.\n");
|
||
exit(-1);
|
||
}
|
||
if (trame_cmp("$GPRMC... ", "GPRMC" )!=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
|
||
int main(int argc,char ** argv)
|
||
{
|
Formats disponibles : Unified diff
modifications tests unitaires