Exemple #1
0
 def test_20(self):
     self.assertEqual(int_to_str(20), "20")
Exemple #2
0
 def test_negative(self):
     self.assertEqual(int_to_str(-20), "-20")
Exemple #3
0
 def test_datatype(self):
     self.assertTrue(isinstance(int_to_str(20), str))
Exemple #4
0
 def test_negative_1000(self):
     self.assertEqual(int_to_str(-1000), "-1000")
Exemple #5
0
 def test_invalid_type(self):
     with self.assertRaises(Exception):
         int_to_str("20")
Exemple #6
0
 def test_0(self):
     self.assertEqual(int_to_str(0), "0")
Exemple #7
0
 def test_1000000(self):
     self.assertEqual(int_to_str(1000000), "1000000")
Exemple #8
0
 def test_5(self):
     self.assertEqual(int_to_str(5), "5")
Exemple #9
0
 def test_3(self):
     self.assertEqual(int_to_str(3), "3")
Exemple #10
0
 def test_5000(self):
     self.assertEqual(int_to_str(5000), "5000")