For simple stuff, especially for unit testing small modules 
    
    
    when isMainModule:
       doAssert #condition#
    
    
    Run

is fine or for a larger testsuite you can use 
[https://nim-lang.org/docs/unittest.html](https://nim-lang.org/docs/unittest.html)
 which also runs in the same file 

Reply via email to