summary refs log blame commit diff stats
path: root/tests/accept/run/tbintre2.nim
blob: dedc87705589ee4915782eda5014ee7b8501825f (plain) (tree)
























                                        
# 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