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