make tests green again

This commit is contained in:
Andreas Rumpf 2017-11-07 12:57:32 +01:00
commit bb5bab1b74
3 changed files with 21 additions and 14 deletions

View file

@ -2022,6 +2022,13 @@ when defined(nimNewRoof):
yield res
inc(res)
iterator `..`*(a, b: int32): int32 {.inline.} =
## A special version of `..`` for ``int32`` only.
var res = a
while res <= b:
yield res
inc(res)
else:
iterator countup*[S, T](a: S, b: T, step = 1): T {.inline.} =
## Counts from ordinal value `a` up to `b` (inclusive) with the given