mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-08-25 00:01:09 +00:00
chore!: Finish renaming Codex to Logos Storage (#1399)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import pkg/unittest2
|
||||
|
||||
import storage/clock
|
||||
import ./helpers
|
||||
|
||||
suite "Clock":
|
||||
proc testConversion(seconds: SecondsSince1970) =
|
||||
let asBytes = seconds.toBytes
|
||||
|
||||
let restored = asBytes.toSecondsSince1970
|
||||
|
||||
check restored == seconds
|
||||
|
||||
test "SecondsSince1970 should support bytes conversions":
|
||||
let secondsToTest: seq[int64] = @[int64.high, int64.low, 0, 1, 12345, -1, -12345]
|
||||
|
||||
for seconds in secondsToTest:
|
||||
testConversion(seconds)
|
||||
Reference in New Issue
Block a user