diff --git a/test/io/github/sammers/pla/logic/NickNameSearchIndexTest.java b/test/io/github/sammers/pla/logic/NickNameSearchIndexTest.java index 823cf1d2..a59851b3 100644 --- a/test/io/github/sammers/pla/logic/NickNameSearchIndexTest.java +++ b/test/io/github/sammers/pla/logic/NickNameSearchIndexTest.java @@ -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();