Example #1
0
 def testSkipList(self):
     data = populate(size=500)[:, 0]
     ol = lib.makeskiplist(data=data, use_fallback=self.fallback)
     p = None
     for v in ol:
         if p is not None:
             self.assertTrue(v >= p)
         p = v
Example #2
0
 def make(self):
     data  = populate(size = 500)[:,0]
     sl = lib.makeskiplist(data = data, use_fallback = self.fallback)
     self.assertEqual(len(sl),500)
     return sl
Example #3
0
 def setUp(self):
     self.data = makeskiplist(data=populate(size=self.size),
                              use_fallback=True)
Example #4
0
 def setUp(self):
     self.data = makeskiplist(data=populate(size=self.size))
Example #5
0
 def run(self):
     makeskiplist(data=self.data, use_fallback=True)
Example #6
0
 def run(self):
     makeskiplist(data=self.data)
Example #7
0
 def setUp(self):
     self.data = makeskiplist(data = populate(size = self.size), use_fallback = True)
Example #8
0
 def run(self):
     makeskiplist(data = self.data, use_fallback = True)
Example #9
0
 def setUp(self):
     self.data = makeskiplist(data = populate(size = self.size))
Example #10
0
 def run(self):
     makeskiplist(data = self.data)