Example #1
0
def test_additions():
    bt = BTree(20)
    rl = [index.Span(a, a + 5) for a in range(0, 100, 5)]
    for i, r in enumerate(rl):
        bt.insert(r)
        assert list(bt) == rl[:i + 1]
Example #2
0
def test_additions():
    bt = BTree(20)
    l = range(2000)
    for i, item in enumerate(l):
        bt.insert(item)
        assert list(bt) == l[:i + 1]
Example #3
0
def test_additions():
    bt = BTree(20)
    rl = [index.Span(a, a + 5) for a in range(0, 100, 5)]
    for i, r in enumerate(rl):
        bt.insert(r)
        assert list(bt) == rl[:i + 1]
Example #4
0
def test_additions():
    bt = BTree(20)
    l = range(2000)
    for i, item in enumerate(l):
        bt.insert(item)
        assert list(bt) == l[:i + 1]