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 72f5ec9 commit ef7bba7Copy full SHA for ef7bba7
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