Skip to content

Commit da0a7af

Browse files
committed
slight documentation for the tests
1 parent 2b7c829 commit da0a7af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/otp_result.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
use xotp::otp_result::OTPResult;
22

3+
// Tests whether a code with less than 6 digits adds on leading zeroes
34
#[test]
45
fn test_padding_needed() {
56
let result = OTPResult::new(6, 1234);
67
assert_eq!("001234", result.as_string())
78
}
89

10+
// Tests whether the formatter will leave the code string as-is
911
#[test]
1012
fn test_padding_not_needed() {
1113
let result = OTPResult::new(6, 123456);

0 commit comments

Comments
 (0)