@@ -41,7 +41,7 @@ struct ConditionMacroTests {
41
41
##"#expect((true && false))"## :
42
42
##"Testing.__checkCondition({ (__ec: inout Testing.__ExpectationContext) in __ec((__ec(__ec(true, "3c") && __ec(false, "21c"), "1c")), "") }, sourceCode: ["": "(true && false)", "1c": "true && false", "3c": "true", "21c": "false"], comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
43
43
##"#expect(try x())"## :
44
- ##"try Testing.__checkCondition({ (__ec: inout Testing.__ExpectationContext) in try Testing.__requiringTry(try __ec(x(), "4") ) }, sourceCode: ["4": "x()"], comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
44
+ ##"try Testing.__checkCondition({ (__ec: inout Testing.__ExpectationContext) in try __ec(x(), "4") }, sourceCode: ["4": "x()"], comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
45
45
##"#expect(1 is Int)"## :
46
46
##"Testing.__checkCondition({ (__ec: inout Testing.__ExpectationContext) in __ec.__is(1, "", (Int).self, "10") }, sourceCode: ["": "1 is Int", "10": "Int"], comments: [], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()"## ,
47
47
##"#expect("123") { 1 == 2 } then: { foo() }"## :
@@ -122,7 +122,7 @@ struct ConditionMacroTests {
122
122
##"#require((true && false))"## :
123
123
##"Testing.__checkCondition({ (__ec: inout Testing.__ExpectationContext) in try Testing.__requiringTry(__ec((__ec(__ec(true, "3c") && __ec(false, "21c"), "1c")), "")) }, sourceCode: ["": "(true && false)", "1c": "true && false", "3c": "true", "21c": "false"], comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
124
124
##"#require(try x())"## :
125
- ##"Testing.__checkCondition({ (__ec: inout Testing.__ExpectationContext) in try Testing.__requiringTry(try __ec(x(), "4") ) }, sourceCode: ["4": "x()"], comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
125
+ ##"Testing.__checkCondition({ (__ec: inout Testing.__ExpectationContext) in try __ec(x(), "4") }, sourceCode: ["4": "x()"], comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
126
126
##"#require(1 is Int)"## :
127
127
##"Testing.__checkCondition({ (__ec: inout Testing.__ExpectationContext) in try Testing.__requiringTry(__ec.__is(1, "", (Int).self, "10")) }, sourceCode: ["": "1 is Int", "10": "Int"], comments: [], isRequired: true, sourceLocation: Testing.SourceLocation.__here()).__required()"## ,
128
128
##"#require("123") { 1 == 2 } then: { foo() }"## :
@@ -215,7 +215,7 @@ struct ConditionMacroTests {
215
215
"""
216
216
// Source comment
217
217
/** Doc comment */
218
- try Testing.__checkCondition({ (__ec: inout Testing.__ExpectationContext) in try Testing.__requiringTry(try __ec(x(), " 4 " ) ) }, sourceCode: [" 4 " : " x() " ], comments: [.__line( " // Source comment " ),.__documentationBlock( " /** Doc comment */" ), " Argument comment " ], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
218
+ try Testing.__checkCondition({ (__ec: inout Testing.__ExpectationContext) in try __ec(x(), " 4 " ) }, sourceCode: [ " 4 " : " x() " ], comments: [.__line( " // Source comment " ),.__documentationBlock( " /** Doc comment */" ), " Argument comment " ], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
219
219
""" ,
220
220
221
221
"""
@@ -228,7 +228,7 @@ struct ConditionMacroTests {
228
228
// Ignore me
229
229
230
230
// Capture me
231
- try Testing.__checkCondition({ (__ec: inout Testing.__ExpectationContext) in try Testing.__requiringTry(try __ec(x(), " 4 " ) ) }, sourceCode: [" 4 " : " x() " ], comments: [.__line( " // Capture me " )], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
231
+ try Testing.__checkCondition({ (__ec: inout Testing.__ExpectationContext) in try __ec(x(), " 4 " ) }, sourceCode: [ " 4 " : " x() " ], comments: [.__line( " // Capture me " )], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
232
232
""" ,
233
233
234
234
"""
@@ -241,7 +241,7 @@ struct ConditionMacroTests {
241
241
// Ignore me
242
242
\t
243
243
// Capture me
244
- try Testing.__checkCondition({ (__ec: inout Testing.__ExpectationContext) in try Testing.__requiringTry(try __ec(x(), " 4 " ) ) }, sourceCode: [" 4 " : " x() " ], comments: [.__line( " // Capture me " )], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
244
+ try Testing.__checkCondition({ (__ec: inout Testing.__ExpectationContext) in try __ec(x(), " 4 " ) }, sourceCode: [ " 4 " : " x() " ], comments: [.__line( " // Capture me " )], isRequired: false, sourceLocation: Testing.SourceLocation.__here()).__expected()
245
245
""" ,
246
246
]
247
247
)
0 commit comments