Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/groupthink/aatree_test.py
blob: 643aa6cfcc68da1c09b1259fdbded364a6700151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from aatree import *
x = TreeList()
y = AATreeList()

def test(a):
    a[0] = 1
    a[1] = 2
    a[2] = 3
    a[3] = 4
    a[1] = 'b'
    del a[2]
    assert a.index('b') == 1
    assert a.index(4) == 2
    
test(x)
test(y)