Skip to content

Commit

Permalink
Test formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-garcia committed Nov 6, 2023
1 parent e19ec31 commit 7a7a269
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/bitwarden/src/tool/generators/password.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ mod test {
assert_eq!(set.number, NUMBER_CHARS);
assert_eq!(set.special, SPECIAL_CHARS);
}

#[test]
fn test_password_characters_all_ambiguous() {
let set = PasswordGeneratorCharSet::new(true, true, true, true, false);
Expand All @@ -255,6 +256,7 @@ mod test {
assert!(to_set(&set.number).is_superset(&to_set(NUMBER_CHARS_AMBIGUOUS)));
assert_eq!(set.special, SPECIAL_CHARS);
}

#[test]
fn test_password_characters_lower() {
let set = PasswordGeneratorCharSet::new(true, false, false, false, true);
Expand All @@ -263,6 +265,7 @@ mod test {
assert_eq!(set.number, Vec::new());
assert_eq!(set.special, Vec::new());
}

#[test]
fn test_password_characters_upper_ambiguous() {
// Only uppercase including ambiguous
Expand Down

0 comments on commit 7a7a269

Please sign in to comment.