def testFindPinT(self): p, t = makeString() z_hits = z.findall(p, t) brute_hits = bruteforce.findall(p, t) for z_hit, brute_hit in itertools.izip(z_hits, brute_hits): self.assertEquals(z_hit, brute_hit)
def testFindPinT(self): p, t = makeString() for hit in bruteforce.findall(p, t): self.assertEquals(p, t[hit: hit+len(p)])