Exemplo n.º 1
0
 def test_7(self):
     "Testa che '42' è un numero buono."
     self.assertTrue(is_number("42"))
Exemplo n.º 2
0
 def test_6(self):
     "Testa che 'à non è un numero buono."
     self.assertFalse(is_number("a"))
Exemplo n.º 3
0
 def test_4(self):
     "Testa che '-1.3' è un numero buono."
     self.assertTrue(is_number("-1.3"))
Exemplo n.º 4
0
 def test_5(self):
     "Testa che '1-.3' non è un numero buono."
     self.assertFalse(is_number("1-.3"))
Exemplo n.º 5
0
 def test_1(self):
     "Testa che '1' è un numero buono."
     self.assertTrue(is_number("1"))