Skip to content

Commit e4c7939

Browse files
committed
Convert EmojiTests
1 parent b6ec09c commit e4c7939

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Tests/AppTests/EmojiTests.swift

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414

1515
@testable import App
1616

17-
import XCTest
17+
import Testing
1818

19-
class EmojiTests: XCTestCase {
2019

21-
func test_emojiReplacement() throws {
20+
@Suite struct EmojiTests {
21+
22+
@Test func emojiReplacement() throws {
2223
let cases: [(shorthand: String, result: String)] = [
2324
(":smile:", "😄"),
2425
(":grinning:", "😀"),
@@ -29,14 +30,14 @@ class EmojiTests: XCTestCase {
2930
]
3031

3132
cases.forEach { test in
32-
XCTAssertEqual(test.shorthand.replaceShorthandEmojis(), test.result)
33+
#expect(test.shorthand.replaceShorthandEmojis() == test.result)
3334
}
3435
}
3536

36-
func test_emojiLoading() throws {
37+
@Test func emojiLoading() throws {
3738
let emojis = EmojiStorage.current.lookup
38-
XCTAssertEqual(emojis.count, 1913)
39-
XCTAssertEqual(emojis[":grinning:"], "😀")
39+
#expect(emojis.count == 1913)
40+
#expect(emojis[":grinning:"] == "😀")
4041
}
4142

4243
}

0 commit comments

Comments
 (0)