diff options
author | anishmangal2002 <anishmangal2002@gmail.com> | 2010-05-20 19:45:49 (GMT) |
---|---|---|
committer | anishmangal2002 <anishmangal2002@gmail.com> | 2010-05-20 19:45:49 (GMT) |
commit | ee64655f6a54a98adfa1eab832210a082d47945e (patch) | |
tree | 56427bb5a414005985cc1f79aba7a2b0f47e09c0 /groupthink/aatree_test.py | |
parent | c1f8d644fc2551acd39317f3554c2cb4c23c770d (diff) |
Replaced groupthink symbolic link with actual folder.v36
Diffstat (limited to 'groupthink/aatree_test.py')
-rw-r--r-- | groupthink/aatree_test.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/groupthink/aatree_test.py b/groupthink/aatree_test.py new file mode 100644 index 0000000..643aa6c --- /dev/null +++ b/groupthink/aatree_test.py @@ -0,0 +1,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) |