make tests green again

This commit is contained in:
Araq 2018-11-16 19:54:49 +01:00
commit 6279b0587a
6 changed files with 16 additions and 16 deletions

View file

@ -4,12 +4,12 @@ import sequtils
import times
# 1
proc f(n: int): TimeInfo =
TimeInfo(year: n, month: mJan, monthday: 1)
proc f(n: int): DateTime =
DateTime(year: n, month: mJan, monthday: 1)
echo toSeq(2000 || 2015).map(f)
# 2
echo toSeq(2000 || 2015).map(proc (n: int): TimeInfo =
TimeInfo(year: n, month: mJan, monthday: 1)
echo toSeq(2000 || 2015).map(proc (n: int): DateTime =
DateTime(year: n, month: mJan, monthday: 1)
)