import unittest
from NiW import *


class TestNiW(unittest.TestCase):
    def test_1_vaut_un(self):
        self.assertEqual("un", convert(1))

    def test_16_vaut_seize(self):
        self.assertEqual("seize", convert(16))

    def test_17_vaut_dix_sept(self):
        self.assertEqual("dix-sept", convert(17))

    def test_18_vaut_dix_huit(self):
        self.assertEqual("dix-huit", convert(18))

    def test_21_vaut_vingt_et_un(self):
        self.assertEqual("vingt-et-un", convert(21))

    def test_20_vaut_vingt(self):
        self.assertEqual("vingt", convert(20))

    def test_71_vaut_soixante_et_onze(self):
        self.assertEqual("soixante-et-onze", convert(71))

    def test_72_vaut_soixante_douze(self):
        self.assertEqual("soixante-douze", convert(72))

    def test_77_vaut_soixante_dix_sept(self):
        self.assertEqual("soixante-dix-sept", convert(77))

    def test_81_vaut_quatre_vingt_un(self):
        self.assertEqual("quatre-vingt-un", convert(81))


unittest.main()
