예제 #1
0
 def test_with_more_number_arrey(self):
     arr = [91, 56, 3, 4, 123, 78, 534, 1]
     res = to_number(arr)
     self.assertEqual(res, 915634123785341)
예제 #2
0
 def test_with_even_numberss_arrey(self):
     arr = [9, 9, 9, 9, 9, 9]
     res = to_number(arr)
     self.assertEqual(res, 999999)
예제 #3
0
 def test_with_two_number_arrey(self):
     arr = [1, 2]
     res = to_number(arr)
     self.assertEqual(res, 12)
예제 #4
0
 def test_with_odd_number_arrey(self):
     arr = [1, 5, 7, 5, 0]
     res = to_number(arr)
     self.assertEqual(res, 15750)
예제 #5
0
 def test_with_one_number_arrey(self):
     arr = [9]
     res = to_number(arr)
     self.assertEqual(res, 9)