fork download
  1. import unittest
  2. import tree
  3.  
  4. test "test search tree":
  5. var t = newTree[int, int]()
  6.  
  7. check t.add(1, 1)
  8. check not t.add(1, 1)
  9.  
  10. check t.find(1) == 1
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.nim(1, 15) Error: cannot open 'unittest'
stdout
Standard output is empty