summary refs log tree commit diff stats
path: root/tests/closure/ttimeinfo.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-11-16 19:54:49 +0100
committerAraq <rumpf_a@web.de>2018-11-16 19:54:49 +0100
commit6279b0587a9551d8c205e682d28a731f2986c456 (patch)
tree436169010f96ee20521b1bf64fc2cf4215674976 /tests/closure/ttimeinfo.nim
parent3f6168b3372013c0d4b938e6a83849199d9756c9 (diff)
downloadNim-6279b0587a9551d8c205e682d28a731f2986c456.tar.gz
make tests green again
Diffstat (limited to 'tests/closure/ttimeinfo.nim')
-rw-r--r--tests/closure/ttimeinfo.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/closure/ttimeinfo.nim b/tests/closure/ttimeinfo.nim
index 3138ae72e..3096a5d65 100644
--- a/tests/closure/ttimeinfo.nim
+++ b/tests/closure/ttimeinfo.nim
@@ -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)
 )