예제 #1
0
 def test_one_occurrence(self):
     results = Strings.all_indices(self.haystack, "ACGT")
     self.assertEqual(results, [0])
예제 #2
0
 def test_two_occurrences(self):
     results = Strings.all_indices(self.haystack, "ACG")
     self.assertEqual(results, [0, 7])
예제 #3
0
 def test_no_occurrences(self):
     results = Strings.all_indices(self.haystack, "AAA")
     self.assertEqual(results, list())