Révision 259
Ajouté par Lilian MEMBRE il y a environ 3 ans
branch/MEMBRE/sp4a12/main.c | ||
---|---|---|
return p;
|
||
}
|
||
|
||
|
||
|
||
//Test de decode_nombre
|
||
|
||
int test_decode_nombre()
|
||
{
|
||
if (decode_nombre("123",3)!=123)
|
||
{
|
||
printf("%d\n", "Erreur test unitaire");
|
||
exit(-1);
|
||
}
|
||
if (decode_nombre("987654321",2)!=98)
|
||
{
|
||
printf("%d\n", "Erreur test unitaire");
|
||
exit(-1);
|
||
}
|
||
}
|
||
//Fonction ? modifier !!!!!
|
||
void traitement(char * trame)
|
||
{
|
Formats disponibles : Unified diff
test decode_nombre ok