Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eendroroy committed Jan 22, 2025
1 parent 7735462 commit c88185c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/hotp_match_rfc_samples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use rusotp::{Algorithm, HOTP};
const SECRET: &str = "12345678901234567890";

#[test]
fn otp_should_be_generated() {
fn otp_should_match_with_rfc_samples() {
vec![
(0, "755224"),
(1, "287082"),
Expand Down
2 changes: 1 addition & 1 deletion tests/totp_match_rfc_samples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SECRET_SHA256: &str = "12345678901234567890123456789012";
const SECRET_SHA512: &str = "1234567890123456789012345678901234567890123456789012345678901234";

#[test]
fn otp_should_be_generated() {
fn otp_should_match_with_rfc_samples() {
vec![
(SECRET_SHA1, 59, "94287082", Algorithm::SHA1),
(SECRET_SHA256, 59, "46119246", Algorithm::SHA256),
Expand Down

0 comments on commit c88185c

Please sign in to comment.