def test_decode_punctuated_sentence(self):
     self.assertEqual("anobstacleisoftenasteppingstone",
                      decode("zmlyh gzxov rhlug vmzhg vkkrm thglm v..."))
 def test_decode_word(self):
     self.assertEqual("exercism", decode("vcvix rhn"))
 def test_decode_word(self):
     self.assertEqual("exercism", decode("vcvix rhn"))
 def test_decode_numbers(self):
     self.assertEqual(decode("gvhgr mt123 gvhgr mt"), "testing123testing")
 def test_decode_with_too_many_spaces(self):
     self.assertEqual(decode("vc vix    r hn"), "exercism")
Example #6
0
 def test_decode_with_no_spaces(self):
     ciphertext = "zmlyhgzxovrhlugvmzhgvkkrmthglmv"
     plaintext = "anobstacleisoftenasteppingstone"
     self.assertMultiLineEqual(decode(ciphertext), plaintext)
 def test_decode_exercism(self):
     self.assertEqual(decode("vcvix rhn"), "exercism")
Example #8
0
 def test_encode_decode(self):
     self.assertMultiLineEqual(
         decode(encode("Testing, 1 2 3, testing.")), "testing123testing")
Example #9
0
 def test_decode_sentence(self):
     self.assertMultiLineEqual(
         "anobstacleisoftenasteppingstone",
         decode("zmlyh gzxov rhlug vmzhg vkkrm thglm v"))
Example #10
0
 def test_decode_with_too_many_spaces(self):
     self.assertMultiLineEqual(decode("vc vix    r hn"), "exercism")
Example #11
0
 def test_decode_with_no_spaces(self):
     ciphertext = "zmlyhgzxovrhlugvmzhgvkkrmthglmv"
     plaintext = "anobstacleisoftenasteppingstone"
     self.assertMultiLineEqual(decode(ciphertext), plaintext)
Example #12
0
 def test_decode_all_the_letters(self):
     ciphertext = "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt"
     plaintext = "thequickbrownfoxjumpsoverthelazydog"
     self.assertMultiLineEqual(decode(ciphertext), plaintext)
Example #13
0
 def test_decode_numbers(self):
     self.assertMultiLineEqual(
         decode("gvhgr mt123 gvhgr mt"), "testing123testing")
Example #14
0
 def test_decode_word(self):
     self.assertMultiLineEqual(decode("vcvix rhn"), "exercism")
Example #15
0
 def test_decode_word(self):
     self.assertMultiLineEqual(decode("vcvix rhn"), "exercism")
 def test_decode_exercism(self):
     assert decode("vcvix rhn") == "exercism"
Example #17
0
 def test_decode_all_the_letters(self):
     ciphertext = "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt"
     plaintext = "thequickbrownfoxjumpsoverthelazydog"
     self.assertMultiLineEqual(decode(ciphertext), plaintext)
 def test_decode_a_sentence(self):
     assert (decode("zmlyh gzxov rhlug vmzhg vkkrm thglm v") ==
             "anobstacleisoftenasteppingstone")
Example #19
0
 def test_encode_decode(self):
     self.assertMultiLineEqual(
         decode(encode("Testing, 1 2 3, testing.")), "testing123testing")
 def test_decode_numbers(self):
     assert decode("gvhgr mt123 gvhgr mt") == "testing123testing"
 def test_decode_a_sentence(self):
     self.assertEqual(
         decode("zmlyh gzxov rhlug vmzhg vkkrm thglm v"),
         "anobstacleisoftenasteppingstone",
     )
 def test_decode_with_too_many_spaces(self):
     assert decode("vc vix    r hn") == "exercism"
 def test_decode_all_the_letters(self):
     self.assertEqual(
         decode("gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt"),
         "thequickbrownfoxjumpsoverthelazydog",
     )
 def test_decode_sentence(self):
     self.assertMultiLineEqual(
         "anobstacleisoftenasteppingstone",
         decode("zmlyh gzxov rhlug vmzhg vkkrm thglm v")
     )
 def test_decode_with_no_spaces(self):
     self.assertEqual(decode("zmlyhgzxovrhlugvmzhgvkkrmthglmv"),
                      "anobstacleisoftenasteppingstone")
Example #26
0
 def test_decode_numbers(self):
     self.assertMultiLineEqual("testing123testing",
                               decode("gvhgr mt123 gvhgr mt"))