We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d60457d commit 83d2278Copy full SHA for 83d2278
Tests/SwiftParserTest/Assertions.swift
@@ -131,7 +131,7 @@ func AssertDiagnostic<T: SyntaxProtocol>(
131
let expectedLine = expectedLocation.line,
132
let expectedColumn = expectedLocation.column {
133
if actualLine != expectedLine || actualColumn != expectedColumn {
134
- XCTFail("Expected diagnostic on \(expectedLine):\(expectedColumn) but got \(actualLine):\(actualColumn)",
+ XCTFail("Expected diagnostic with message '\(spec.message ?? "<nil>")' on \(expectedLine):\(expectedColumn) but got \(actualLine):\(actualColumn)",
135
file: file, line: line
136
)
137
}
0 commit comments