mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-03-11 05:19:13 +00:00
updating the ui
restTrie function build trie and searching trie tests
This commit is contained in:
@@ -127,4 +127,17 @@ struct PerformanceTests {
|
||||
try! await fakeDownloadAllStickers()
|
||||
await hoarder.deleteAllStickers()
|
||||
}
|
||||
|
||||
@Test func buildTrie() async throws {
|
||||
hoarder.resetTrie()
|
||||
hoarder.buildTrie()
|
||||
}
|
||||
|
||||
@Test func testSearching() async throws {
|
||||
try! await buildTrie()
|
||||
let terms = ["h", "j", "s", "2", "heavysob", "hs", "asjasdklf", "a", "w", "t", "h", "z", "b", "c", "m", "n"]
|
||||
for term in terms {
|
||||
let _ = hoarder.trie.search(prefix: term)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user