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