コード例 #1
0
ファイル: test_shortener.py プロジェクト: osantana/curso-tdd
 def test_one_to_B(self):
     self.assertEquals("B", short(1))
コード例 #2
0
ファイル: test_shortener.py プロジェクト: osantana/curso-tdd
 def test_big_integer_to_BAA(self):
     self.assertEquals("BAA", short(6724))
コード例 #3
0
ファイル: test_shortener.py プロジェクト: osantana/curso-tdd
 def test_zero_to_A(self):
     self.assertEquals("A", short(0))
コード例 #4
0
ファイル: test_shortener.py プロジェクト: osantana/curso-tdd
 def test_others(self):
     res = ""
     for d in range(62, 82):
         res += short(d)
     self.assertEquals("!$()*-./:;<>[]^_`{|}", res)
コード例 #5
0
ファイル: test_shortener.py プロジェクト: osantana/curso-tdd
 def test_eighty_two_to_BA(self):
     self.assertEquals("BA", short(82))
コード例 #6
0
ファイル: test_shortener.py プロジェクト: osantana/curso-tdd
 def test_sixty_two_to_nine(self):
     self.assertEquals("9", short(61))
コード例 #7
0
ファイル: test_shortener.py プロジェクト: osantana/curso-tdd
 def test_fifty_two_to_zero(self):
     self.assertEquals("0", short(52))
コード例 #8
0
ファイル: test_shortener.py プロジェクト: osantana/curso-tdd
 def test_fifty_one_to_z(self):
     self.assertEquals("z", short(51))
コード例 #9
0
ファイル: test_shortener.py プロジェクト: osantana/curso-tdd
 def test_twenty_six_to_a(self):
     self.assertEquals("a", short(26))
コード例 #10
0
ファイル: test_shortener.py プロジェクト: osantana/curso-tdd
 def test_twenty_five_to_Z(self):
     self.assertEquals("Z", short(25))