tests/time.min
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
'min-test require :test ;;; "time" test.describe (time.stamp 1464951736 >) test.assert (time.now 1464951736 >) test.assert (1464951736 time.datetime "2016-06-03T11:02:16Z" ==) test.assert (1464951736 "yy-MM-dd" time.format "16-06-03" ==) test.assert (1464951736 time.info time.to-timestamp 1464951736 ==) test.assert (1464951736 time.info 'second dict.get 16 ==) test.assert (1464951736 time.info 'timezone dict.get integer?) test.assert test.report stack.clear |