Example #1
0
 def test_one_to_B(self):
     self.assertEquals("B", short(1))
Example #2
0
 def test_big_integer_to_BAA(self):
     self.assertEquals("BAA", short(6724))
Example #3
0
 def test_zero_to_A(self):
     self.assertEquals("A", short(0))
Example #4
0
 def test_others(self):
     res = ""
     for d in range(62, 82):
         res += short(d)
     self.assertEquals("!$()*-./:;<>[]^_`{|}", res)
Example #5
0
 def test_eighty_two_to_BA(self):
     self.assertEquals("BA", short(82))
Example #6
0
 def test_sixty_two_to_nine(self):
     self.assertEquals("9", short(61))
Example #7
0
 def test_fifty_two_to_zero(self):
     self.assertEquals("0", short(52))
Example #8
0
 def test_fifty_one_to_z(self):
     self.assertEquals("z", short(51))
Example #9
0
 def test_twenty_six_to_a(self):
     self.assertEquals("a", short(26))
Example #10
0
 def test_twenty_five_to_Z(self):
     self.assertEquals("Z", short(25))