Just test the private parts from within its own file. That's a nice way to
write some peace-of-mind tests. (Testing an implementation detail is not always
a bad idea.)
when isMainModule:
test_private()
Another example:
* [https://forum.nim-lang.org/t/1303](https://forum.nim-lang.org/t/1303)
You might want to exclude the test from compilation to save time, but dead-code
elimination can remove it from the shipped code anyway.
To run the test, you will have to build that module as an executable, but then
you simply execute it.