def test_prime_form_of_013578A_should_be_013568A(self): pf = prime_form([0, 1, 3, 5, 7, 8, 10]) self.assertEqual(pf, [0, 1, 3, 5, 6, 8, 10])
def test_prime_form_of_269_should_be_047(self): pf = prime_form([2, 6, 9]) self.assertEqual(pf, [0, 3, 7])