Exemplo n.º 1
0
 def test_caesar_lowercase(self):
     before = 'abcdefghijklmnopqrstuvwxyz'
     expected = 'bcdefghijklmnopqrstuvwxyza'
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
Exemplo n.º 2
0
 def test_caesar_nonletter(self):
     before = '12345'
     expected = '12345'
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
Exemplo n.º 3
0
 def test_caesar_empty(self):
     before = ''
     expected = ''
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
Exemplo n.º 4
0
 def test_caesar_uppercase(self):
     before = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     expected = 'BCDEFGHIJKLMNOPQRSTUVWXYZA'
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
Exemplo n.º 5
0
 def test_caesar_mixedcase(self):
     before = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
     expected = 'bcdefghijklmnopqrstuvwxyzaBCDEFGHIJKLMNOPQRSTUVWXYZA'
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
Exemplo n.º 6
0
 def test_caesar_lowercase(self):
     before = 'abcdefghijklmnopqrstuvwxyz'
     expected =  'bcdefghijklmnopqrstuvwxyza'
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
Exemplo n.º 7
0
 def test_caesar_empty(self):
     before = ''
     expected =  ''
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
Exemplo n.º 8
0
 def test_caesar_nonletter(self):
     before = '12345'
     expected =  '12345'
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
Exemplo n.º 9
0
 def test_caesar_mixedcase(self):
     before = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
     expected =  'bcdefghijklmnopqrstuvwxyzaBCDEFGHIJKLMNOPQRSTUVWXYZA'
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
Exemplo n.º 10
0
 def test_caesar_uppercase(self):
     before = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     expected =  'BCDEFGHIJKLMNOPQRSTUVWXYZA'
     actual = text.caesar(before)
     self.assertEqual(actual, expected)