Skip to content

Commit

Permalink
chore: Trim the value before checking size
Browse files Browse the repository at this point in the history
  • Loading branch information
en-milie committed Oct 5, 2024
1 parent b135162 commit bcdfbdc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ void shouldGenerateWithInnerDollarSign() {
void shouldGenerateRegex(String pattern, int minSize, int maxSize, int expectedMinSize, int expectedMaxSize) {
String generated = StringGenerator.generate(pattern, minSize, maxSize);

Assertions.assertThat(generated).hasSizeBetween(expectedMinSize, expectedMaxSize).matches(pattern);
Assertions.assertThat(generated.trim()).hasSizeBetween(expectedMinSize, expectedMaxSize).matches(pattern);
}

@Test
Expand Down

0 comments on commit bcdfbdc

Please sign in to comment.