Skip to content

Commit

Permalink
Fixing test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Jan 12, 2025
1 parent 0e91a9b commit 2570e19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public String getUnQuotedValue() {
}

private static final Pattern PREPARSE = Pattern.compile("[^\\p{IsAlphabetic}&!+\\-\\d\\s]");
private static final Pattern AFTERPARSE = Pattern.compile("[^\\p{IsAlphabetic}\\-\\d\\s]");
private static final Pattern AFTERPARSE = Pattern.compile("[^\\p{IsAlphabetic}+\\-\\d\\s]");

private String getCleanText() {
String lower = getUnQuotedValue().toLowerCase();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void ANDandNOT() {
assertThat(parseANDandNOT("auto and fiets")).isEqualTo("+auto +fiets");
assertThat(parseANDandNOT("auto&fiets")).isEqualTo("+auto +fiets");
assertThat(parseANDandNOT("auto & ! fiets")).isEqualTo("+auto -fiets");

assertThat(parseANDandNOT("+auto +fiets")).isEqualTo("+auto +fiets");
}

@Test
Expand Down

0 comments on commit 2570e19

Please sign in to comment.