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