1
Fork 0
mirror of https://github.com/RGBCube/revolt.v synced 2025-07-27 17:07:45 +00:00

Add IdHolder test

This commit is contained in:
RGBCube 2022-12-16 22:45:59 +03:00
parent 62116cbaf2
commit ffd40c0749

16
src/id_test.v Normal file
View file

@ -0,0 +1,16 @@
module revolt
fn test_id() {
ids := [
'01FHAY2QP8B50A661620CJDTK3',
]!
expected := [
1633528405704,
]!
for i, id in ids {
idh := IdHolder{id}
assert idh.created_at().unix == expected[i]
}
}