Skip to content

Commit

Permalink
add dash test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammers21 committed Aug 4, 2024
1 parent adda66a commit 8991e0a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/io/github/sammers/pla/logic/NickNameSearchIndexTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ public void basic() {
Assertions.assertEquals(1, nickNameSearchIndex.searchNickNames("whitemask").size());
}

@Test
public void dashTest(){
NickNameSearchIndex nickNameSearchIndex = new NickNameSearchIndex();
nickNameSearchIndex.insertNickNames(new SearchResult(Character.fullNameByRealmAndName("Whitemask", "Kazzak"), "eu", "Priest"));
Assertions.assertEquals(1, nickNameSearchIndex.searchNickNames("whitemask-k").size());
}

@Test
public void realm() {
NickNameSearchIndex nickNameSearchIndex = new NickNameSearchIndex();
Expand Down

0 comments on commit 8991e0a

Please sign in to comment.