make tests green again
This commit is contained in:
parent
3f6168b337
commit
6279b0587a
6 changed files with 16 additions and 16 deletions
|
|
@ -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)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue