Skip to content

Commit

Permalink
Adjust a test to match what is being generated
Browse files Browse the repository at this point in the history
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?)
  • Loading branch information
helje5 committed Nov 1, 2024
1 parent f5beac5 commit 5efb591
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/ManagedModelMacrosTests/ManagedModelMacrosTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ final class ModelMacroTests: XCTestCase {
XCTAssertTrue(diags.isEmpty)

let explodedSource = explodedFile.description
print("S:", explodedSource)
XCTAssertTrue(explodedSource.contains(
"extension Person: ManagedModels.PersistentModel"))
"extension MySchema.Person: ManagedModels.PersistentModel"))
XCTAssertTrue (explodedSource.contains("static let x = 10"))
XCTAssertFalse(explodedSource.contains("@NSManaged"))
XCTAssertTrue (explodedSource.contains("static let schemaMetadata"))
Expand Down

0 comments on commit 5efb591

Please sign in to comment.