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