@@ -225,7 +225,7 @@ struct ConditionMacroTests {
225
225
"""
226
226
// Source comment
227
227
/** Doc comment */
228
- try Testing.__checkCondition({ (__ec: Testing.__ExpectationContext) -> Swift.Bool in try __ec(x(), 0x4) }, sourceCode: [0x4: " x() " ], comments: [.__line( " // Source comment " ),.__documentationBlock( " /** Doc comment */" ), " Argument comment " ], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
228
+ try Testing.__checkCondition({ (__ec: Testing.__ExpectationContext) -> Swift.Bool in try __ec(x(), 0x4) }, sourceCode: [0x4: " x() " ], comments: [.__line( " // Source comment " ),.__documentationBlock( " /** Doc comment */" ), " Argument comment " ], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
229
229
""" ,
230
230
231
231
"""
@@ -238,7 +238,7 @@ struct ConditionMacroTests {
238
238
// Ignore me
239
239
240
240
// Capture me
241
- try Testing.__checkCondition({ (__ec: Testing.__ExpectationContext) -> Swift.Bool in try __ec(x(), 0x4) }, sourceCode: [0x4: " x() " ], comments: [.__line( " // Capture me " )], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
241
+ try Testing.__checkCondition({ (__ec: Testing.__ExpectationContext) -> Swift.Bool in try __ec(x(), 0x4) }, sourceCode: [0x4: " x() " ], comments: [.__line( " // Capture me " )], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
242
242
""" ,
243
243
244
244
"""
@@ -251,7 +251,7 @@ struct ConditionMacroTests {
251
251
// Ignore me
252
252
\t
253
253
// Capture me
254
- try Testing.__checkCondition({ (__ec: Testing.__ExpectationContext) -> Swift.Bool in try __ec(x(), 0x4) }, sourceCode: [0x4: " x() " ], comments: [.__line( " // Capture me " )], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
254
+ try Testing.__checkCondition({ (__ec: Testing.__ExpectationContext) -> Swift.Bool in try __ec(x(), 0x4) }, sourceCode: [0x4: " x() " ], comments: [.__line( " // Capture me " )], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
255
255
""" ,
256
256
257
257
"""
@@ -260,7 +260,7 @@ struct ConditionMacroTests {
260
260
""" :
261
261
"""
262
262
// Capture me
263
- try Testing.__checkValue(x, expression: .__fromSyntaxNode( " x " ) , comments: [.__line(" // Capture me " )], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
263
+ try Testing.__checkCondition({ (__ec: Testing.__ExpectationContext) -> Swift.Bool in __ec(x, 0x0) }, sourceCode: [0x0: " x " ] , comments: [.__line(" // Capture me " )], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
264
264
""" ,
265
265
266
266
"""
@@ -269,7 +269,7 @@ struct ConditionMacroTests {
269
269
""" :
270
270
"""
271
271
// Capture me
272
- await Testing.__checkValue(x, expression: .__fromSyntaxNode( " x " ) , comments: [.__line(" // Capture me " )], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
272
+ await Testing.__checkCondition({ (__ec: Testing.__ExpectationContext) -> Swift.Bool in __ec(x, 0x0) }, sourceCode: [0x0: " x " ] , comments: [.__line(" // Capture me " )], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
273
273
""" ,
274
274
275
275
"""
@@ -288,7 +288,7 @@ struct ConditionMacroTests {
288
288
// Comment for await
289
289
await
290
290
// Comment for expect
291
- Testing.__checkValue(x, expression: .__fromSyntaxNode( " x " ) , comments: [.__line(" // Comment for try " ), .__line( " // Comment for await " ), .__line( " // Comment for expect " )], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
291
+ Testing.__checkCondition({ (__ec: Testing.__ExpectationContext) -> Swift.Bool in __ec(x, 0x0) }, sourceCode: [0x0: " x " ] , comments: [.__line(" // Comment for try " ), .__line( " // Comment for await " ), .__line( " // Comment for expect " )], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
292
292
""" ,
293
293
294
294
"""
@@ -301,9 +301,7 @@ struct ConditionMacroTests {
301
301
"""
302
302
func example() {
303
303
// Capture me
304
- Testing.__checkFunctionCall((), calling: { _ in
305
- x()
306
- }, expression: .__fromFunctionCall(nil, " x " ), comments: [.__line( " // Capture me " )], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
304
+ Testing.__checkCondition({ (__ec: Testing.__ExpectationContext) -> Swift.Bool in __ec(x(), 0x0) }, sourceCode: [0x0: " x() " ], comments: [.__line( " // Capture me " )], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
307
305
}
308
306
""" ,
309
307
]
0 commit comments