16
16
// CHECK: Test Suite 'ExpectationsTestCase' started at \d+:\d+:\d+\.\d+
17
17
class ExpectationsTestCase : XCTestCase {
18
18
// CHECK: Test Case 'ExpectationsTestCase.test_waitingForAnUnfulfilledExpectation_fails' started at \d+:\d+:\d+\.\d+
19
- // CHECK: .*/Tests/Functional/Asynchronous/Expectations/main.swift:23 : error: ExpectationsTestCase.test_waitingForAnUnfulfilledExpectation_fails : Asynchronous wait failed - Exceeded timeout of 0.2 seconds, with unfulfilled expectations: foo
19
+ // CHECK: .*/Tests/Functional/Asynchronous/Expectations/main.swift:[[@LINE+4]] : error: ExpectationsTestCase.test_waitingForAnUnfulfilledExpectation_fails : Asynchronous wait failed - Exceeded timeout of 0.2 seconds, with unfulfilled expectations: foo
20
20
// CHECK: Test Case 'ExpectationsTestCase.test_waitingForAnUnfulfilledExpectation_fails' failed \(\d+\.\d+ seconds\).
21
21
func test_waitingForAnUnfulfilledExpectation_fails( ) {
22
22
expectation ( withDescription: " foo " )
23
23
waitForExpectations ( withTimeout: 0.2 )
24
24
}
25
25
26
26
// CHECK: Test Case 'ExpectationsTestCase.test_waitingForUnfulfilledExpectations_outputsAllExpectations_andFails' started at \d+:\d+:\d+\.\d+
27
- // CHECK: .*/Tests/Functional/Asynchronous/Expectations/main.swift:32 : error: ExpectationsTestCase.test_waitingForUnfulfilledExpectations_outputsAllExpectations_andFails : Asynchronous wait failed - Exceeded timeout of 0.2 seconds, with unfulfilled expectations: bar, baz
27
+ // CHECK: .*/Tests/Functional/Asynchronous/Expectations/main.swift:[[@LINE+5]] : error: ExpectationsTestCase.test_waitingForUnfulfilledExpectations_outputsAllExpectations_andFails : Asynchronous wait failed - Exceeded timeout of 0.2 seconds, with unfulfilled expectations: bar, baz
28
28
// CHECK: Test Case 'ExpectationsTestCase.test_waitingForUnfulfilledExpectations_outputsAllExpectations_andFails' failed \(\d+\.\d+ seconds\).
29
29
func test_waitingForUnfulfilledExpectations_outputsAllExpectations_andFails( ) {
30
30
expectation ( withDescription: " bar " )
@@ -52,7 +52,7 @@ class ExpectationsTestCase: XCTestCase {
52
52
}
53
53
54
54
// CHECK: Test Case 'ExpectationsTestCase.test_waitingForAnExpectationFulfilledAfterTheTimeout_fails' started at \d+:\d+:\d+\.\d+
55
- // CHECK: .*/Tests/Functional/Asynchronous/Expectations/main.swift:63 : error: ExpectationsTestCase.test_waitingForAnExpectationFulfilledAfterTheTimeout_fails : Asynchronous wait failed - Exceeded timeout of 0.1 seconds, with unfulfilled expectations: hog
55
+ // CHECK: .*/Tests/Functional/Asynchronous/Expectations/main.swift:[[@LINE+8]] : error: ExpectationsTestCase.test_waitingForAnExpectationFulfilledAfterTheTimeout_fails : Asynchronous wait failed - Exceeded timeout of 0.1 seconds, with unfulfilled expectations: hog
56
56
// CHECK: Test Case 'ExpectationsTestCase.test_waitingForAnExpectationFulfilledAfterTheTimeout_fails' failed \(\d+\.\d+ seconds\).
57
57
func test_waitingForAnExpectationFulfilledAfterTheTimeout_fails( ) {
58
58
let expectation = self . expectation ( withDescription: " hog " )
@@ -72,7 +72,7 @@ class ExpectationsTestCase: XCTestCase {
72
72
}
73
73
74
74
// CHECK: Test Case 'ExpectationsTestCase.test_whenTimeoutIsImmediate_butNotAllExpectationsAreFulfilled_fails' started at \d+:\d+:\d+\.\d+
75
- // CHECK: .*/Tests/Functional/Asynchronous/Expectations/main.swift:79 : error: ExpectationsTestCase.test_whenTimeoutIsImmediate_butNotAllExpectationsAreFulfilled_fails : Asynchronous wait failed - Exceeded timeout of -1.0 seconds, with unfulfilled expectations: dog
75
+ // CHECK: .*/Tests/Functional/Asynchronous/Expectations/main.swift:[[@LINE+4]] : error: ExpectationsTestCase.test_whenTimeoutIsImmediate_butNotAllExpectationsAreFulfilled_fails : Asynchronous wait failed - Exceeded timeout of -1.0 seconds, with unfulfilled expectations: dog
76
76
// CHECK: Test Case 'ExpectationsTestCase.test_whenTimeoutIsImmediate_butNotAllExpectationsAreFulfilled_fails' failed \(\d+\.\d+ seconds\).
77
77
func test_whenTimeoutIsImmediate_butNotAllExpectationsAreFulfilled_fails( ) {
78
78
expectation ( withDescription: " dog " )
0 commit comments