@@ -83,11 +83,11 @@ struct ConditionMacroTests {
83
83
##"#expect(a, sourceLocation: someValue)"## :
84
84
##"Testing.__checkValue(a, expression: .__fromSyntaxNode("a"), comments: [], isRequired: false, sourceLocation: someValue).__expected()"## ,
85
85
##"#expect(a.isB)"## :
86
- ##"Testing.__checkPropertyAccess(a.self, getting: { $0.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a"), .__fromSyntaxNode( "isB") ), comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
86
+ ##"Testing.__checkPropertyAccess(a.self, getting: { $0.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a"), "isB"), comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
87
87
##"#expect(a???.isB)"## :
88
- ##"Testing.__checkPropertyAccess(a.self, getting: { $0???.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a"), .__fromSyntaxNode( "isB") ), comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
88
+ ##"Testing.__checkPropertyAccess(a.self, getting: { $0???.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a"), "isB"), comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
89
89
##"#expect(a?.b.isB)"## :
90
- ##"Testing.__checkPropertyAccess(a?.b.self, getting: { $0?.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a?.b"), .__fromSyntaxNode( "isB") ), comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
90
+ ##"Testing.__checkPropertyAccess(a?.b.self, getting: { $0?.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a?.b"), "isB"), comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
91
91
]
92
92
)
93
93
func expectMacro( input: String , expectedOutput: String ) throws {
@@ -159,11 +159,11 @@ struct ConditionMacroTests {
159
159
##"#require(a, sourceLocation: someValue)"## :
160
160
##"Testing.__checkValue(a, expression: .__fromSyntaxNode("a"), comments: [], isRequired: true, sourceLocation: someValue).__required()"## ,
161
161
##"#require(a.isB)"## :
162
- ##"Testing.__checkPropertyAccess(a.self, getting: { $0.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a"), .__fromSyntaxNode( "isB") ), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
162
+ ##"Testing.__checkPropertyAccess(a.self, getting: { $0.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a"), "isB"), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
163
163
##"#require(a???.isB)"## :
164
- ##"Testing.__checkPropertyAccess(a.self, getting: { $0???.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a"), .__fromSyntaxNode( "isB") ), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
164
+ ##"Testing.__checkPropertyAccess(a.self, getting: { $0???.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a"), "isB"), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
165
165
##"#require(a?.b.isB)"## :
166
- ##"Testing.__checkPropertyAccess(a?.b.self, getting: { $0?.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a?.b"), .__fromSyntaxNode( "isB") ), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
166
+ ##"Testing.__checkPropertyAccess(a?.b.self, getting: { $0?.isB }, expression: .__fromPropertyAccess(.__fromSyntaxNode("a?.b"), "isB"), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
167
167
]
168
168
)
169
169
func requireMacro( input: String , expectedOutput: String ) throws {
@@ -175,7 +175,7 @@ struct ConditionMacroTests {
175
175
@Test ( " Unwrapping #require() macro " ,
176
176
arguments: [
177
177
##"#require(Optional<Int>.none)"## :
178
- ##"Testing.__checkPropertyAccess(Optional<Int>.self, getting: { $0.none }, expression: .__fromPropertyAccess(.__fromSyntaxNode("Optional<Int>"), .__fromSyntaxNode( "none") ), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
178
+ ##"Testing.__checkPropertyAccess(Optional<Int>.self, getting: { $0.none }, expression: .__fromPropertyAccess(.__fromSyntaxNode("Optional<Int>"), "none"), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
179
179
##"#require(nil ?? 123)"## :
180
180
##"Testing.__checkBinaryOperation(nil, { $0 ?? $1() }, 123, expression: .__fromBinaryOperation(.__fromSyntaxNode("nil"), "??", .__fromSyntaxNode("123")), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
181
181
##"#require(123 ?? nil)"## :
0 commit comments