Révision 181
Ajouté par frkanaan il y a presque 4 ans
branch/KANAAN/sp4a12/main.c | ||
---|---|---|
void test_decode_int(void)
|
||
{
|
||
char i;
|
||
|
||
for(i=0; i<127; i++)
|
||
printf("%d\n", decode_int(i));
|
||
{
|
||
if(i>47 && i<54 && decode_int(i) != (i-48))
|
||
{
|
||
printf ("Erreur Test unitaire decode_int.\n");
|
||
exit(-1);
|
||
}
|
||
else if(decode_int(i) == i)
|
||
{
|
||
printf ("Erreur Test unitaire decode_int.\n");
|
||
exit(-1);
|
||
}
|
||
}
|
||
}
|
||
|
||
//Fonction ? modifier !!!!!
|
Formats disponibles : Unified diff