Refactor read_password function to take just the name as argument, not the prompt.

This commit is contained in:
Oleksandr Kozachuk
2023-01-07 13:40:00 +01:00
parent 54c2c0e5a1
commit 122aeaf75b
4 changed files with 9 additions and 13 deletions
+2 -2
View File
@@ -493,7 +493,7 @@ mod tests {
assert_eq!(
pr.out,
LKOut::from_vecs(
vec!["fief gild sits can un very".to_string()],
vec!["san bud most noon jaw cash".to_string()],
vec![
"warning: password / is not marked as correct".to_string(),
"warning: password t1 is not marked as correct".to_string(),
@@ -523,6 +523,6 @@ mod tests {
]
)
);
assert_eq!(std::fs::read_to_string("test_pb_out").expect("read"), "fief gild sits can un very");
assert_eq!(std::fs::read_to_string("test_pb_out").expect("read"), "san bud most noon jaw cash");
}
}