Exemple #1
0
 def test2(self):
     solution = Solution()
     self.assertEqual(solution.cipher("Yvccf nficu!", 9), "Hello world!")
Exemple #2
0
 def test8(self):
     solution = Solution()
     self.assertEqual(solution.cipher("123 ! *()", 1), "123 ! *()")
Exemple #3
0
 def test1(self):
     solution = Solution()
     self.assertEqual(solution.cipher("Zwddg ogjdv!", 8), "Hello world!")
Exemple #4
0
 def test7(self):
     solution = Solution()
     self.assertEqual(solution.cipher("Gdkkn vnqkc!", -25), "Hello world!")
Exemple #5
0
 def test6(self):
     solution = Solution()
     self.assertEqual(solution.cipher("Hello world!", 0), "Hello world!")
Exemple #6
0
 def test5(self):
     solution = Solution()
     self.assertEqual(solution.cipher("Ifmmp xpsme!", 25), "Hello world!")
Exemple #7
0
 def test4(self):
     solution = Solution()
     self.assertEqual(solution.cipher("Qnuux fxaum!", -9), "Hello world!")
Exemple #8
0
 def test3(self):
     solution = Solution()
     self.assertEqual(solution.cipher("Kyv t*uv zj 1: gcvrjv ivjgfeu!", 9),
                      "The c*de is 1: please respond!")