def test_number_to_list(self): self.assertEqual([1, 2, 3], number_to_list(123)) # [1, 2, 3] self.assertEqual([9, 9, 9, 9, 9], number_to_list(99999)) # [9, 9, 9, 9, 9] self.assertEqual([1, 2, 3, 0, 2, 3], number_to_list(123023))
def test_number_to_list_2(self): self.assertEqual([ 9, 9, 9, 9, 9, ], solution.number_to_list(99999))
def test_different_digits(self): self.assertEqual([1, 2, 3], solution.number_to_list(123))
def test_number_to_list(self): self.assertEqual([1, 2, 3], solution.number_to_list(123)) self.assertEqual([9, 9, 9, 9, 9], solution.number_to_list(99999)) self.assertEqual([1, 2, 3, 0, 2, 3], solution.number_to_list(123023))
def test_with_numbers_with_more_than_three_digits(self): self.assertEqual(solution.number_to_list(27936), [2, 7, 9, 3, 6]) self.assertEqual(solution.number_to_list(92730273072832372), [9, 2, 7, 3, 0, 2, 7, 3, 0, 7, 2, 8, 3, 2, 3, 7, 2])
def test_number_to_list1(self): self.assertEqual([9, 9, 9, 9], solution.number_to_list(9999))
def test_different_numbers(self): self.assertEqual([2, 3, 3, 3], solution.number_to_list(2333)) self.assertEqual([1, 1, 1, 1], solution.number_to_list(1111)) self.assertEqual([3, 3, 3, 3], solution.number_to_list(3333)) self.assertEqual([3, 0, 0, 0, 0, 0], solution.number_to_list(300000))
def test_number_to_list(self): self.assertEqual(number_to_list(12345), [1, 2, 3, 4, 5]) self.assertEqual(number_to_list(99999), [9, 9, 9, 9, 9]) self.assertEqual(number_to_list(1054070), [1, 0, 5, 4, 0, 7, 0]) self.assertEqual(number_to_list(7), [7]) self.assertEqual(number_to_list(23), [2, 3])
def test2(self): self.assertEqual([1, 4, 2, 5, 7], solution.number_to_list(14257))
def test3(self): self.assertEqual([9, 0, 1, 3, 5, 0], solution.number_to_list(901350))
def test_123(self): self.assertListEqual([1, 2, 3], number_to_list(123))
def test_99999(self): self.assertListEqual([9, 9, 9, 9, 9], number_to_list(99999))
def test_number_to_list2(self): self.assertEqual([1, 2, 3, 4], solution.number_to_list(1234))
def test_number_to_list5(self): self.assertEqual([1, 2, 3, 4, 5], solution.number_to_list(12345))
def test_problem_statement_cases(self): self.assertEqual([1, 2, 3], number_to_list(123)) self.assertEqual([9, 9, 9, 9, 9], number_to_list(99999)) self.assertEqual([1, 2, 3, 0, 2, 3], number_to_list(123023))
def test_same_digits(self): self.assertEqual([9, 9, 9, 9, 9],solution.number_to_list(99999))
def test_zero_number(self): self.assertEqual([0], solution.number_to_list(0))
def test1(self): self.assertEqual([9, 9, 9, 9, 9], number_to_list(99999))
def test_negative_number(self): self.assertEqual([3, 3, 1, 1], solution.number_to_list(-3311)) self.assertEqual([3, 1, 2, 3, 1, 3], solution.number_to_list(312313)) self.assertEqual([7, 6, 8, 6, 7], solution.number_to_list(76867))
def test_number_to_list4(self): self.assertEqual([9, 8, 7, 6, 5], solution.number_to_list(98765))
def test_number_to_list(self): self.assertEqual([1, 2, 3], solution.number_to_list(123)) self.assertEqual([9,9,9,9,9], solution.number_to_list(99999)) self.assertEqual([1, 2, 3, 0, 2, 3], solution.number_to_list(123023))
def test_with_eqaul_digits_number(self): self.assertEqual([9, 9, 9, 9, 9], solution.number_to_list(99999))
def test_with_single_digit_numbers(self): self.assertEqual(solution.number_to_list(0), [0]) self.assertEqual(solution.number_to_list(5), [5])
def test_with_another_number(self): self.assertEqual([1, 2, 3, 0, 2, 3], solution.number_to_list(123023))
def test_with_one_digit_number(self): self.assertEqual([1], solution.number_to_list(1))
def test_same_digits(self): self.assertEqual([9, 9, 9, 9, 9], solution.number_to_list(99999))
def test_tree(self): self.assertEquals([1,2,3,0,2,3], number_to_list(123023))
def test_different_digits(self): self.assertEqual([1, 2, 3],solution.number_to_list(123))
def test_one(self): self.assertEquals([1,2,3], number_to_list(123))
def test_three(self): self.assertEqual([1, 2, 3, 0, 2, 3], number_to_list(123023))
def test_two(self): self.assertEquals([9,9,9,9,9], number_to_list(99999))
def test0(self): self.assertEqual([1, 2, 3], number_to_list(123))
def test_number_to_list_1(self): self.assertEqual([1, 2, 3], solution.number_to_list(123))
def test_number_to_list_2(self): self.assertEqual([1], number_to_list(1))
def test_some_lists(self): self.assertEqual([1, 2, 3],number_to_list(123)) self.assertEqual([9, 9, 9, 9, 9],number_to_list(99999)) self.assertEqual([1, 2, 3, 0, 2, 3],number_to_list(123023))
def test_number_to_list_1(self): self.assertEqual([2, 3, 8, 9, 0], number_to_list(23890))
def test_1(self): self.assertEqual([1, 2, 3], solution.number_to_list(123))
def test_number_to_list3(self): self.assertEqual([1, 0], solution.number_to_list(10))
def test_with_two_digit_numbers(self): self.assertEqual(solution.number_to_list(23), [2, 3]) self.assertEqual(solution.number_to_list(89), [8, 9])
def test_with_three_digit_numbers(self): self.assertEqual(solution.number_to_list(783), [7, 8, 3]) self.assertEqual(solution.number_to_list(500), [5, 0, 0])