示例#1
0
 def test_string_has_2_letters_second_example(self):
     result = determine_if_string_has_2_letters_that_appear_twice_without_overlap('aabcdefgaa')
     self.assertEqual(1, result)
示例#2
0
 def test_string_does_not_have_2_letters_has_overlap_third_example(self):
     result = determine_if_string_has_2_letters_that_appear_twice_without_overlap('aaa')
     self.assertEqual(0, result)
示例#3
0
 def test_string_has_2_letters_first_example(self):
     result = determine_if_string_has_2_letters_that_appear_twice_without_overlap('xyxy')
     self.assertEqual(1, result)