9 lines
259 B
Nim
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"
|