def test_find_r_2(self): sl = SkipList() sl.insert(3, 0) sl.insert(1, 0) self.assertEqual(sl.find_r(1), 1) self.assertEqual(sl.find_r(3), 3) self.assertEqual(sl.find_r(2), None)
def test_find_r_2(self): sl = SkipList() sl.insert( 3, 0 ) sl.insert( 1, 0 ) self.assertEqual(sl.find_r(1), 1) self.assertEqual(sl.find_r(3), 3) self.assertEqual(sl.find_r(2), None)
def test_find_r_1(self): sl = SkipList() sl.insert(3, 0) sl.insert(1, 0) self.assertEqual(sl.find_r(1), 1)
def test_find_r_1(self): sl = SkipList() sl.insert( 3, 0 ) sl.insert( 1, 0 ) self.assertEqual(sl.find_r(1), 1)