fmt
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
shimun 2019-10-12 13:40:24 +02:00
parent 7eb9dcc928
commit 9a8ea993b5
Signed by: shimun
GPG Key ID: E81D8382DC2F971B
2 changed files with 11 additions and 3 deletions

View File

@ -173,8 +173,13 @@ mod test {
#[test]
fn input_salt_obtain() {
assert_eq!(
InputSalt::String("abc".into()).obtain(&PasswordHelper::Stdin).unwrap(),
[186, 120, 22, 191, 143, 1, 207, 234, 65, 65, 64, 222, 93, 174, 34, 35, 176, 3, 97, 163, 150, 23, 122, 156, 180, 16, 255, 97, 242, 0, 21, 173]
InputSalt::String("abc".into())
.obtain(&PasswordHelper::Stdin)
.unwrap(),
[
186, 120, 22, 191, 143, 1, 207, 234, 65, 65, 64, 222, 93, 174, 34, 35, 176, 3, 97,
163, 150, 23, 122, 156, 180, 16, 255, 97, 242, 0, 21, 173
]
)
}
}

View File

@ -46,7 +46,10 @@ mod test {
fn test_assemble_secret() {
assert_eq!(
assemble_secret(b"abc", b"def"),
[46, 82, 82, 140, 142, 159, 249, 196, 227, 160, 142, 72, 151, 77, 59, 62, 180, 36, 33, 47, 241, 94, 17, 232, 133, 103, 247, 32, 152, 253, 43, 19]
[
46, 82, 82, 140, 142, 159, 249, 196, 227, 160, 142, 72, 151, 77, 59, 62, 180, 36,
33, 47, 241, 94, 17, 232, 133, 103, 247, 32, 152, 253, 43, 19
]
)
}
}