diff options
Diffstat (limited to 'tests/accept/run/tbintre2.nim')
-rw-r--r-- | tests/accept/run/tbintre2.nim | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/accept/run/tbintre2.nim b/tests/accept/run/tbintre2.nim new file mode 100644 index 000000000..dedc87705 --- /dev/null +++ b/tests/accept/run/tbintre2.nim @@ -0,0 +1,25 @@ +# Same test, but check module boundaries + +import tbintree + +var + root: PBinaryTree[string] + x = newNode("hallo") +add(root, x) +add(root, "world") +if find(root, "world"): + for str in items(root): + stdout.write(str) +else: + stdout.writeln("BUG") + +var + r2: PBinaryTree[int] +add(r2, newNode(110)) +add(r2, 223) +add(r2, 99) +for y in items(r2): + stdout.write(y) + +#OUT halloworld99110223 + |