Mark Spanbroek f957dd59d6 Fix tests on Nim 1.6.12
Ignore the nimble.lock at the root level when running tests
2023-06-05 17:26:46 +02:00

12 lines
372 B
Nim

version = "0.1.0"
author = "Questionable Authors"
description = "Questionable tests for std/option"
license = "MIT"
task test, "Runs the test suite":
var options = "-f -r --skipParentCfg"
when (NimMajor, NimMinor) >= (1, 4):
options &= " --warningAsError[UnsafeDefault]:on"
options &= " --warningAsError[ProveInit]:on"
exec "nim c " & options & " test.nim"