Tests: Times: JS: Add test for yearday attribute.

This commit is contained in:
Konstantin Molchanov
2017-03-27 21:14:02 +04:00
parent bef86f55ce
commit 1a5e880f5a

13
tests/js/ttimes.nim Normal file
View File

@@ -0,0 +1,13 @@
# test times module with js
discard """
action: run
"""
import times
# $ date --date='@2147483647'
# Tue 19 Jan 03:14:07 GMT 2038
block yeardayTest:
# check if yearday attribute is properly set on TimeInfo creation
doAssert fromSeconds(2147483647).getGMTime().yearday == 0