2025-07-31 12:07:18 +02:00
|
|
|
version = "0.1.0"
|
|
|
|
|
author = "Async Iterators Authors"
|
|
|
|
|
description = "Tests for Nim Async iterator helpers for Chronos"
|
|
|
|
|
license = "MIT"
|
|
|
|
|
|
|
|
|
|
requires "asynctest >= 0.5.4 & < 0.6.0"
|
|
|
|
|
|
|
|
|
|
task test, "Runs the test suite":
|
2025-12-18 18:38:03 +01:00
|
|
|
var options = "-f -r"
|
2025-07-31 12:07:18 +02:00
|
|
|
when (NimMajor, NimMinor) >= (1, 4):
|
|
|
|
|
options &= " --warningAsError[UnsafeDefault]:on"
|
|
|
|
|
options &= " --warningAsError[ProveInit]:on"
|
|
|
|
|
exec "nim c " & options & " testiter.nim"
|
|
|
|
|
exec "nim c " & options & " testasynciter.nim"
|
|
|
|
|
exec "nim c " & options & " testasyncresultiter.nim"
|
2025-12-18 18:38:03 +01:00
|
|
|
echo "" # Force output flush
|