Skip to content

Commit 499119d

Browse files
committed
Fix tests
1 parent 54a3618 commit 499119d

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

Tests/SwiftParserTest/translated/RawStringErrorsTests.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ final class RawStringErrorsTests: XCTestCase {
4141
// TODO: Old parser expected error on line 1: consecutive statements on a line must be separated by ';'
4242
// TODO: Old parser expected error on line 1: expected expression
4343
DiagnosticSpec(locationMarker: "1️⃣", message: "consecutive statements on a line must be separated by ';'"),
44-
DiagnosticSpec(locationMarker: "2️⃣", message: "expected identifier in pound literal declaration"),
45-
DiagnosticSpec(locationMarker: "3️⃣", message: "expected identifier in pound literal declaration"),
46-
DiagnosticSpec(locationMarker: "4️⃣", message: "expected identifier in pound literal declaration"),
44+
DiagnosticSpec(locationMarker: "2️⃣", message: "expected identifier in pound literal expression"),
45+
DiagnosticSpec(locationMarker: "3️⃣", message: "expected identifier in pound literal expression"),
46+
DiagnosticSpec(locationMarker: "4️⃣", message: "expected identifier in pound literal expression"),
4747
]
4848
)
4949
}
@@ -70,9 +70,9 @@ final class RawStringErrorsTests: XCTestCase {
7070
// TODO: Old parser expected error on line 1: consecutive statements on a line must be separated by ';'
7171
// TODO: Old parser expected error on line 1: expected expression
7272
DiagnosticSpec(locationMarker: "1️⃣", message: "consecutive statements on a line must be separated by ';'"),
73-
DiagnosticSpec(locationMarker: "2️⃣", message: "expected identifier in pound literal declaration"),
74-
DiagnosticSpec(locationMarker: "3️⃣", message: "expected identifier in pound literal declaration"),
75-
DiagnosticSpec(locationMarker: "4️⃣", message: "expected identifier in pound literal declaration"),
73+
DiagnosticSpec(locationMarker: "2️⃣", message: "expected identifier in pound literal expression"),
74+
DiagnosticSpec(locationMarker: "3️⃣", message: "expected identifier in pound literal expression"),
75+
DiagnosticSpec(locationMarker: "4️⃣", message: "expected identifier in pound literal expression"),
7676
]
7777
)
7878
}

Tests/SwiftSyntaxMacrosTest/MacroSystemTests.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,20 @@ final class MacroSystemTests: XCTestCase {
4343
struct X {
4444
var computed: String {
4545
get {
46-
(#function)
46+
#function
4747
}
4848
}
4949
5050
init(from: String) {
51-
(#function)
51+
#function
5252
}
5353
5454
subscript(a: Int) -> String {
55-
(#function)
55+
#function
5656
}
5757
5858
subscript(a a: Int) -> String {
59-
(#function)
59+
#function
6060
}
6161
}
6262
@@ -81,20 +81,20 @@ final class MacroSystemTests: XCTestCase {
8181
struct X {
8282
var computed: String {
8383
get {
84-
("computed")
84+
"computed"
8585
}
8686
}
8787
8888
init(from: String) {
89-
("init(from:)")
89+
"init(from:)"
9090
}
9191
9292
subscript(a: Int) -> String {
93-
("subscript(_:)")
93+
"subscript(_:)"
9494
}
9595
9696
subscript(a a: Int) -> String {
97-
("subscript(a:)")
97+
"subscript(a:)"
9898
}
9999
}
100100

0 commit comments

Comments
 (0)