File tree 1 file changed +8
-1
lines changed
Tests/ManagedModelMacrosTests
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,6 @@ final class ModelMacroTests: XCTestCase {
120
120
XCTAssertTrue ( diags. isEmpty)
121
121
122
122
let explodedSource = explodedFile. description
123
- print ( " S: " , explodedSource)
124
123
XCTAssertTrue ( explodedSource. contains (
125
124
" extension MySchema.Person: ManagedModels.PersistentModel " ) )
126
125
XCTAssertTrue ( explodedSource. contains ( " static let x = 10 " ) )
@@ -132,6 +131,14 @@ final class ModelMacroTests: XCTestCase {
132
131
"""
133
132
) )
134
133
134
+ XCTAssertTrue ( explodedSource. contains ( try Regex (
135
+ #"var(\s+)addresses(\s+):(\s+)\[(\s+)Address(\s+)\]"#
136
+ ) ) )
137
+ XCTAssertTrue ( explodedSource. contains (
138
+ #"setValue(forKey: "addresses", to: newValue)"# ) )
139
+ XCTAssertTrue ( explodedSource. contains ( #"getValue(forKey: "addresses")"# ) )
140
+
141
+
135
142
#if false
136
143
print ( " Exploded:--- \n " )
137
144
print ( explodedSource)
You can’t perform that action at this time.
0 commit comments