Skip to content

Commit 1b14b5d

Browse files
committed
Fixup some test cases
1 parent bbb5c7a commit 1b14b5d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/Serialization/macros.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ func test(a: Int, b: Int) {
1313
// expected-error@-1{{external macro implementation type 'SomeModule.StringifyMacro' could not be found for macro 'publicStringify'; the type must be public and provided via '-load-plugin-library'}}
1414

1515
_ = #internalStringify(a + b)
16-
// expected-error@-1{{macro 'internalStringify' is undefined}}
16+
// expected-error@-1{{no macro named 'internalStringify'}}
1717
}

test/StringProcessing/Parse/forward-slash-regex.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func testSubscript(_ x: S) {
168168
x[/x/]
169169
x[/x /]
170170
// expected-error@-1:9 {{expected expression after operator}}
171-
// expected-error@-2 {{missing argument for parameter #1 in call}}
171+
// expected-error@-2 {{missing argument for parameter #1 in subscript}}
172172

173173
_ = x[/] / 2
174174
}

test/StringProcessing/Parse/regex_parse_error.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ do {
3838
/#
3939
// expected-error@-2:7 {{unterminated regex literal}}
4040
// expected-error@-3:10 {{expected escape sequence}}
41-
// expected-error@-3:4 {{expected expression}}
41+
// expected-error@-3:4 {{expected a macro identifier}}
4242
}
4343

4444
func foo<T>(_ x: T, _ y: T) {}

0 commit comments

Comments
 (0)