Révision 390
Ajouté par Faty MBAYE il y a plus de 4 ans
| main.c | ||
|---|---|---|
|
//Fonction de test de la fonction decode_nombre
|
||
|
void test_decode_nombre(void)
|
||
|
{
|
||
|
if((decode_nombre("8541",2))!=85)
|
||
|
if((decode_nombre("8541",4))!=8541)
|
||
|
{
|
||
|
printf ("Erreur Test unitaire decode nombre.\n");
|
||
|
exit(-1);
|
||
|
}
|
||
|
if((decode_nombre("8541",2))!=85)
|
||
|
if((decode_nombre("8541",3))!=854)
|
||
|
{
|
||
|
printf ("Erreur Test unitaire decode nombre.\n");
|
||
|
exit(-1);
|
||
|
}
|
||
|
if((decode_nombre("8541",3))!=854)
|
||
|
if((decode_nombre("8541",2))!=85)
|
||
|
{
|
||
|
printf ("Erreur Test unitaire decode nombre.\n");
|
||
|
exit(-1);
|
||
Formats disponibles : Unified diff