Skip to content

Commit

Permalink
removed one test, and refactored another one
Browse files Browse the repository at this point in the history
  • Loading branch information
strehle committed Oct 24, 2023
1 parent 6b5b6fa commit b30c52f
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,11 @@ void setUp() {
}

@Test
void min_password_length_is_always_1_if_set_to_0() {
policy.setMinLength(0);
void min_password_length_is_1() {
policy.setMinLength(1);
validatePassword("", "Password must be at least 1 characters in length.");
validatePassword(null, "Password must be at least 1 characters in length.");
}

@Test
void min_password_length_is_always_1_if_not_set() {
policy.setMinLength(-1);
validatePassword("", "Password must be at least 1 characters in length.");
validatePassword(null, "Password must be at least 1 characters in length.");
}


@Test
void testValidateSuccess() {
validatePassword("Password2&");
Expand Down

0 comments on commit b30c52f

Please sign in to comment.