assert() -> doAssert()
Also fixed a test and added the other to the Nimble task.
This commit is contained in:
parent
7903f1680f
commit
acd5a6063c
6 changed files with 18 additions and 13 deletions
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue