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