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:
parent
62116cbaf2
commit
ffd40c0749
1 changed files with 16 additions and 0 deletions
16
src/id_test.v
Normal file
16
src/id_test.v
Normal 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]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue