Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testAutoComplete10 #206

Open
Sherrin-ALA opened this issue Jun 8, 2023 · 1 comment
Open

testAutoComplete10 #206

Sherrin-ALA opened this issue Jun 8, 2023 · 1 comment

Comments

@Sherrin-ALA
Copy link

    List<Map> results = searcher.autocomplete("Rossi", 40, true);
    assertNotNull(results);
    assertTrue(results.size() > 0);
    assertTrue(results.stream().anyMatch(r -> "Iliocirrus rossi".equals(r.get("name"))));
    assertTrue(results.stream().anyMatch(r -> "Natatolana rossi".equals(r.get("name"))));
@Sherrin-ALA Sherrin-ALA transferred this issue from AtlasOfLivingAustralia/Taxonomic-Issues-Register_new Jun 8, 2023
@Sherrin-ALA
Copy link
Author

Natatolana rossi no longer comes back in the top 40. Replaced with Nesothrips rossi in the test case.

assertTrue(results.stream().anyMatch(r -> "Nesothrips rossi".equals(r.get("name"))));
   // assertTrue(results.stream().anyMatch(r -> "Natatolana rossi".equals(r.get("name"))));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant