Esempio n. 1
0
 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)
Esempio n. 2
0
 def testFindPinT(self):
     p, t = makeString()
     for hit in bruteforce.findall(p, t): 
         self.assertEquals(p, t[hit: hit+len(p)])