Exemplo n.º 1
0
 def test_str_rot_13(self):
    new_string = string_101.str_rot_13('abc123')
    expected = 'nop123'
    self.assertEqual(new_string, expected)
Exemplo n.º 2
0
 def test_rot_13(self):
     string1 = 'hello'
     self.assertEqual(string_101.str_rot_13(string1), 'uryyb')
     string2 = 'uryyb'
     self.assertEqual(string_101.str_rot_13(string2), 'hello')
Exemplo n.º 3
0
 def test_str_rot_13_2(self):
    new_string = string_101.str_rot_13('79zzz')
    expected = '79mmm'
    self.assertEqual(new_string, expected)
Exemplo n.º 4
0
 def test_str_rot_13(self):
     self.assertEqual(string_101.str_rot_13('Hello'), 'Uryyb')
     self.assertEqual(string_101.str_rot_13('Clguba'), 'Python')
Exemplo n.º 5
0
 def test_string_101_2(self):
     string = string_101.str_rot_13("CoolestCoby")
     self.assertEqual(string, "PbbyrfgPbol")
Exemplo n.º 6
0
 def test_string_101_1(self):
     string = string_101.str_rot_13("CobyHong")
     self.assertEqual(string, "PbolUbat")
Exemplo n.º 7
0
 def test_lower2(self):
     s = 'and'
     self.assertEqual(string_101.str_rot_13(s), 'naq')
Exemplo n.º 8
0
 def test_lower1(self):
     s = 'lad'
     self.assertEqual(string_101.str_rot_13(s), 'ynq')