Révision 413
Ajouté par megoutteno il y a presque 4 ans
main.c | ||
---|---|---|
|
||
for(i=0;i<nbr;i++)
|
||
{
|
||
b=10*b+decode_int(&ch[i]);
|
||
printf("%d\n",b);
|
||
printf("%d c=\n",decode_int(&ch[i]));
|
||
b=10*b+decode_int(ch[i]);
|
||
}
|
||
printf("%d \n",b);
|
||
return b;
|
||
}
|
||
//Ajouter vos tests unitaires dans cette fonction.
|
||
... | ... | |
printf ("Erreur Test unitaire decode_int.\n");
|
||
exit(-1);
|
||
}
|
||
if (decode_nombre('7454',1)!=74){
|
||
if (decode_nombre("7454",2)!=74){
|
||
printf ("Erreur Test unitaire decode_nombre.\n");
|
||
exit(-1);
|
||
}
|
Formats disponibles : Unified diff
Résolution de la fonction decode_nombre