Пример #1
0
 def test_translate_14_abc(self):
     self.assertEqual(to_base(14, u"0123456789abcdéf"), u"é")
Пример #2
0
 def test_translate_1_abc(self):
     self.assertEqual(to_base(1, "abc"), "b")
Пример #3
0
 def test_translate_7_abc(self):
     self.assertEqual(to_base(7, "abc"), "cb")
Пример #4
0
 def test_translate_2_abc(self):
     self.assertEqual(to_base(2, "abc"), "c")