Example #1
0
def test_insert_regression():
    bt = BTree.bulkload(range(2000), 50)

    for i in xrange(100000):
        bt.insert(random.randrange(2000))
Example #2
0
def test_insert_regression():
    bt = BTree.bulkload(range(2000), 50)

    for i in xrange(100000):
        bt.insert(random.randrange(2000))
Example #3
0
def test_bulkloads():
    bt = BTree.bulkload(range(2000), 20)
    assert list(bt) == range(2000)
Example #4
0
def test_bulkloads():
    bt = BTree.bulkload(range(2000), 20)
    assert list(bt) == range(2000)