nim-time-utils/test/ttimeutils.nim
2016-10-07 21:55:33 -05:00

9 lines
259 B
Nim

import times, timeutils, unittest
suite "timeutils":
test "format TimeInterval":
let interval = seconds(70)
check interval.format("ss's'") == "10s"
check interval.format("mm'm' ss's'") == "01m 10s"
check interval.format("mm:ss") == "01:10"