From 8991e0a3257bb969ae92b1d2c0f738434cf5d0a5 Mon Sep 17 00:00:00 2001 From: Sammers21 Date: Sun, 4 Aug 2024 15:25:51 +0300 Subject: [PATCH] add dash test --- .../github/sammers/pla/logic/NickNameSearchIndexTest.java | 7 +++++++ 1 file changed, 7 insertions(+) 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();