Exemple #1
0
def interfaz():

    num = input('Ingrese un numero: ')

    return print('Su numero es: ', dec_o_carac(num))
Exemple #2
0
 def test_HOLA(self):
     decimal = dec_o_carac('HOLA')
     self.fail(decimal)
Exemple #3
0
 def test_5(self):
     decimal = dec_o_carac(5)
     self.assertEqual(decimal, 5)
Exemple #4
0
 def test_234(self):
     decimal = dec_o_carac(234)
     self.assertEqual(decimal, 'EA')
Exemple #5
0
 def test_1234(self):
     decimal = dec_o_carac(1234)
     self.assertEqual(decimal, '4D2')
Exemple #6
0
 def test_4095(self):
     decimal = dec_o_carac(4095)
     self.assertEqual(decimal, 'FFF')
Exemple #7
0
 def test_17(self):
     decimal = dec_o_carac(17)
     self.assertEqual(decimal, '11')
Exemple #8
0
 def test_10(self):
     decimal = dec_o_carac(10)
     self.assertEqual(decimal, 'A')