Ejemplo n.º 1
0
 def test_case_11(self):
     self.assertEqual(
         underscorifySubstring("abcabcabcabcabcabcabcabcabcabcabcabcabcabc",
                               "abc"),
         "_abcabcabcabcabcabcabcabcabcabcabcabcabcabc_")
Ejemplo n.º 2
0
 def test_case_10(self):
     self.assertEqual(
         underscorifySubstring("abababababababababababababaababaaabbababaa",
                               "a"),
         "_a_b_a_b_a_b_a_b_a_b_a_b_a_b_a_b_a_b_a_b_a_b_a_b_a_b_aa_b_a_b_aaa_bb_a_b_a_b_aa_"
     )
Ejemplo n.º 3
0
 def test_case_9(self):
     self.assertEqual(underscorifySubstring("tzttztttz", "ttt"),
                      "tzttz_ttt_z")
Ejemplo n.º 4
0
 def test_case_1(self):
     self.assertEqual(
         underscorifySubstring("this is a test to see if it works", "test"),
         "this is a _test_ to see if it works")
Ejemplo n.º 5
0
 def test_case_8(self):
     self.assertEqual(
         underscorifySubstring("ttttttttttttttbtttttctatawtatttttastvb",
                               "ttt"),
         "_tttttttttttttt_b_ttttt_ctatawta_ttttt_astvb")
Ejemplo n.º 6
0
 def test_case_7(self):
     self.assertEqual(
         underscorifySubstring("this is a test to see if it works and test",
                               "bfjawkfja"),
         "this is a test to see if it works and test")