Files
StickerSlack/StickerSlackTests/StickerSlackTests.swift
neon443 c974e8136b async let to parallelise stuff
fix crash when the fetched db doesnt exist
added loadremoteDB to asyncly fetch remotedb
fixed Tasks not running on background threads
remove expiration from slackresponse
emoji.uiid starts out as emoji.id
added filtering emojis test
hopefully optimised the display of images checking if its local
imessage extension ios 15+
remove the "hii!!" and "hello world" from the emojji picker
2025-10-30 19:44:59 +00:00

36 lines
799 B
Swift

//
// StickerSlackTests.swift
// StickerSlackTests
//
// Created by neon443 on 29/10/2025.
//
import Testing
struct StickerSlackTests {
var hoarder = EmojiHoarder()
@Test func stickerConversion() async throws {
// Write your test here and use APIs like `#expect(...)` to check expected conditions.
for emoji in hoarder.emojis {
print(emoji.sticker)
}
}
@Test func localImageURL() async throws {
for emoji in hoarder.emojis {
print(emoji.localImageURL)
}
}
@Test func filteringEmojis() async throws {
let searchQueries = ["heavysob", "yay", "afsdjk", "afhjskf", "g4", "aqua-osx", "neotunes", "", "", ""]
for query in searchQueries {
print(query)
hoarder.filteredEmojis = []
hoarder.filterEmojis(by: query)
print(hoarder.filteredEmojis.count)
}
}
}