File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments