assert() -> doAssert()

Also fixed a test and added the other to the Nimble task.
This commit is contained in:
Ștefan Talpalaru 2019-03-14 04:19:41 +01:00
commit acd5a6063c
No known key found for this signature in database
GPG key ID: CBF7934204F1B6F9
6 changed files with 18 additions and 13 deletions

View file

@ -11,6 +11,11 @@ requires "nim >= 0.17.0",
"ranges",
"std_shims"
task test, "run tests":
exec "nim c -r tests/test_output_stream.nim"
import ospaths, strutils
task test, "Run tests":
for filename in listFiles("tests"):
if filename.startsWith("tests" / "test_") and filename.endsWith(".nim"):
exec "nim c -r " & filename
rmFile filename[0..^5]