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