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
def make(self): data = populate(size = 500)[:,0] sl = lib.makeskiplist(data = data, use_fallback = self.fallback) self.assertEqual(len(sl),500) return sl
def setUp(self): self.data = makeskiplist(data=populate(size=self.size), use_fallback=True)
def setUp(self): self.data = makeskiplist(data=populate(size=self.size))
def run(self): makeskiplist(data=self.data, use_fallback=True)
def run(self): makeskiplist(data=self.data)
def setUp(self): self.data = makeskiplist(data = populate(size = self.size), use_fallback = True)
def run(self): makeskiplist(data = self.data, use_fallback = True)
def setUp(self): self.data = makeskiplist(data = populate(size = self.size))
def run(self): makeskiplist(data = self.data)