Skip to content

Commit

Permalink
Fixed unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
romanchyla committed Feb 20, 2020
1 parent d525973 commit 2acc0af
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,9 @@ public void testAuthorParsingUseCases() throws Exception {
testAuthorQuery(
"\"Boser, S\"",
"first_author:boser, s | first_author:boser, s* | first_author:boser, | first_author:böser, s | first_author:böser, s* | first_author:böser, | first_author:boeser, s | first_author:boeser, s* | first_author:boeser,",
"//*[@numFound='1']",
"//*[@numFound='1']");
//setDebug(true);
testAuthorQuery(
"\"Böser, S\"",
"first_author:böser, s | first_author:böser, s* | first_author:böser, | first_author:boeser, s | first_author:boeser, s* | first_author:boeser, | first_author:boser, s | first_author:boser, s* | first_author:boser,",
"//*[@numFound='1']"
Expand Down Expand Up @@ -2628,9 +2630,9 @@ public Query assertQueryEquals(SolrQueryRequest req, String expected, Class<?> c
if (actual.startsWith("("))
actual = actual.substring(1, actual.length()-1);

String[] ex = expected.split("(\\s\\|\\s|\\s)*[a-z]+\\:");
String[] ex = expected.split("(\\s\\|\\s|\\s)*[a-z_]+\\:");
Arrays.sort(ex);
String[] ac = actual.split("(\\s\\|\\s|\\s)*[a-z]+\\:");
String[] ac = actual.split("(\\s\\|\\s|\\s)*[a-z_]+\\:");
Arrays.sort(ac);
StringBuffer exs = new StringBuffer();
for (String s: ex) {
Expand Down

0 comments on commit 2acc0af

Please sign in to comment.