Skip to content

Commit

Permalink
fix test name for #3
Browse files Browse the repository at this point in the history
  • Loading branch information
ba0f3 committed Sep 27, 2023
1 parent c8ac072 commit 0a6da5e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_issue3.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import otp
var totp = Totp.init("GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ")
assert totp.at(1111111111) == 50471
assert totp.at(1234567890) == 5924
assert totp.at(2000000000) == 279037

assert totp.verify(50471, 1111111111)
let token = totp.now()
assert totp.verify(token)

0 comments on commit 0a6da5e

Please sign in to comment.