Skip to content

Commit 5efb591

Browse files
committed
Adjust a test to match what is being generated
Need to prefix the nested type w/ the outer type in the extension. Which seems to work properly, but what tested differently in the test (how did that ever work?)
1 parent f5beac5 commit 5efb591

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/ManagedModelMacrosTests/ManagedModelMacrosTests.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ final class ModelMacroTests: XCTestCase {
120120
XCTAssertTrue(diags.isEmpty)
121121

122122
let explodedSource = explodedFile.description
123+
print("S:", explodedSource)
123124
XCTAssertTrue(explodedSource.contains(
124-
"extension Person: ManagedModels.PersistentModel"))
125+
"extension MySchema.Person: ManagedModels.PersistentModel"))
125126
XCTAssertTrue (explodedSource.contains("static let x = 10"))
126127
XCTAssertFalse(explodedSource.contains("@NSManaged"))
127128
XCTAssertTrue (explodedSource.contains("static let schemaMetadata"))

0 commit comments

Comments
 (0)