move tests to testament (#16101)
* move tests to testament * minor * fix random * disable test random
This commit is contained in:
parent
d306a04466
commit
cbc793b30b
56 changed files with 2205 additions and 2232 deletions
16
tests/stdlib/tmonotimes.nim
Normal file
16
tests/stdlib/tmonotimes.nim
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import std/monotimes, times
|
||||
|
||||
let d = initDuration(nanoseconds = 10)
|
||||
let t1 = getMonoTime()
|
||||
let t2 = t1 + d
|
||||
|
||||
doAssert t2 - t1 == d
|
||||
doAssert t1 == t1
|
||||
doAssert t1 != t2
|
||||
doAssert t2 - d == t1
|
||||
doAssert t1 < t2
|
||||
doAssert t1 <= t2
|
||||
doAssert t1 <= t1
|
||||
doAssert not(t2 < t1)
|
||||
doAssert t1 < high(MonoTime)
|
||||
doAssert low(MonoTime) < t1
|
||||
Loading…
Add table
Add a link
Reference in a new issue