def test_997_in_base996(self): result = palindromic.base10_to_baseN(997, 996) self.assertEqual(result, [1, 1])
def test_16_in_base3(self): result = palindromic.base10_to_baseN(16, 3) self.assertEqual(result, [1, 2, 1])
def test_17_in_base2(self): result = palindromic.base10_to_baseN(17, 2) self.assertEqual(result, [1, 0, 0, 0, 1])
def test_7_in_base10(self): result = palindromic.base10_to_baseN(7, 10) self.assertEqual(result, [7])
def test_0_in_base2(self): result = palindromic.base10_to_baseN(0, 2) self.assertEqual(result, [0])