Révision 362
Ajouté par modia3 il y a presque 4 ans
branch/dia/sp4a12/main.c | ||
---|---|---|
int verif = 1;
|
||
int j;
|
||
|
||
while(type[i] != NULL){
|
||
while(type[i]!=NULL){
|
||
i++;
|
||
}
|
||
|
||
... | ... | |
|
||
return verif;
|
||
}
|
||
|
||
int decode_int(char c){
|
||
int i;
|
||
if(c>='0' && c<='9')
|
||
{
|
||
i=c-48;
|
||
}
|
||
else
|
||
i=-1;
|
||
return i;
|
||
}
|
||
|
||
/*Fonction ? modifier !!!!!*/
|
||
void traitement(char * trame)
|
||
... | ... | |
printf("Erreur test unitaire decode int\n");
|
||
exit(-1);
|
||
}
|
||
if (decode_int('2')!=2)
|
||
{
|
||
printf("Erreur test unitaire decode int\n");
|
||
exit(-1);
|
||
}
|
||
|
||
}
|
||
|
||
/*Ajouter vos tests unitaires dans cette fonction.*/
|
Formats disponibles : Unified diff
fin question7 du tp1