We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b7c829 commit da0a7afCopy full SHA for da0a7af
tests/otp_result.rs
@@ -1,11 +1,13 @@
1
use xotp::otp_result::OTPResult;
2
3
+// Tests whether a code with less than 6 digits adds on leading zeroes
4
#[test]
5
fn test_padding_needed() {
6
let result = OTPResult::new(6, 1234);
7
assert_eq!("001234", result.as_string())
8
}
9
10
+// Tests whether the formatter will leave the code string as-is
11
12
fn test_padding_not_needed() {
13
let result = OTPResult::new(6, 123456);
0 commit comments