Skip to content

Commit 11ef9ff

Browse files
committed
Add a bit more testing
1 parent 838eab9 commit 11ef9ff

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Sources/TestingMacros/Support/DiagnosticMessage.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,6 @@ struct DiagnosticMessage: SwiftDiagnostics.DiagnosticMessage {
655655
fromArgument argumentContainingDisplayName: LabeledExprListSyntax.Element,
656656
using attribute: AttributeSyntax
657657
) -> Self {
658-
// FIXME: implement fixits
659658
Self(
660659
syntax: Syntax(decl),
661660
message: "Attribute \(_macroName(attribute)) specifies display name '\(displayNameFromAttribute.representedLiteralValue!)' for \(_kindString(for: decl)) with implicit display name '\(decl.name.rawIdentifier!)'",

Tests/TestingTests/MiscellaneousTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@ struct MiscellaneousTests {
290290
@Test func `__raw__$raw_identifier_provides_a_display_name`() throws {
291291
let test = try #require(Test.current)
292292
#expect(test.displayName == "raw_identifier_provides_a_display_name")
293+
#expect(test.name == "`raw_identifier_provides_a_display_name`()")
294+
let id = test.id
295+
#expect(id.moduleName == "TestingTests")
296+
#expect(id.nameComponents == ["MiscellaneousTests", "`raw_identifier_provides_a_display_name`()"])
293297
}
294298

295299
@Test("Free functions are runnable")

0 commit comments

Comments
 (0)