@@ -83,11 +83,11 @@ struct ConditionMacroTests {
8383 ##"#expect(a, sourceLocation: someValue)"## :
8484 ##"Testing.__checkValue(a, expression: .__fromSyntaxNode("a"), comments: [], isRequired: false, sourceLocation: someValue).__expected()"## ,
8585 ##"#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()"## ,
8787 ##"#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()"## ,
8989 ##"#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()"## ,
9191 ]
9292 )
9393 func expectMacro( input: String , expectedOutput: String ) throws {
@@ -159,11 +159,11 @@ struct ConditionMacroTests {
159159 ##"#require(a, sourceLocation: someValue)"## :
160160 ##"Testing.__checkValue(a, expression: .__fromSyntaxNode("a"), comments: [], isRequired: true, sourceLocation: someValue).__required()"## ,
161161 ##"#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()"## ,
163163 ##"#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()"## ,
165165 ##"#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()"## ,
167167 ]
168168 )
169169 func requireMacro( input: String , expectedOutput: String ) throws {
@@ -175,7 +175,7 @@ struct ConditionMacroTests {
175175 @Test ( " Unwrapping #require() macro " ,
176176 arguments: [
177177 ##"#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()"## ,
179179 ##"#require(nil ?? 123)"## :
180180 ##"Testing.__checkBinaryOperation(nil, { $0 ?? $1() }, 123, expression: .__fromBinaryOperation(.__fromSyntaxNode("nil"), "??", .__fromSyntaxNode("123")), comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
181181 ##"#require(123 ?? nil)"## :
0 commit comments