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 aeba542 commit 2b7c829Copy full SHA for 2b7c829
tests/otp_result.rs
@@ -0,0 +1,13 @@
1
+use xotp::otp_result::OTPResult;
2
+
3
+#[test]
4
+fn test_padding_needed() {
5
+ let result = OTPResult::new(6, 1234);
6
+ assert_eq!("001234", result.as_string())
7
+}
8
9
10
+fn test_padding_not_needed() {
11
+ let result = OTPResult::new(6, 123456);
12
+ assert_eq!("123456", result.as_string())
13
0 commit comments