@@ -37,7 +37,7 @@ class ErrorHandling: XCTestCase {
37
37
}
38
38
39
39
// CHECK: Test Case 'ErrorHandling.test_shouldButDoesNotThrowErrorInAssertion' started.
40
- // CHECK: .*/ErrorHandling/main.swift:\d+: error: ErrorHandling.test_shouldButDoesNotThrowErrorInAssertion : XCTAssertThrowsError failed: did not throw error -
40
+ // CHECK: .*/ErrorHandling/main.swift:\d+: error: ErrorHandling.test_shouldButDoesNotThrowErrorInAssertion : XCTAssertThrowsError failed: did not throw error -
41
41
// CHECK: Test Case 'ErrorHandling.test_shouldButDoesNotThrowErrorInAssertion' failed \(\d+\.\d+ seconds\).
42
42
func test_shouldButDoesNotThrowErrorInAssertion( ) {
43
43
XCTAssertThrowsError ( try functionThatDoesNotThrowError ( ) )
@@ -60,7 +60,7 @@ class ErrorHandling: XCTestCase {
60
60
}
61
61
62
62
// CHECK: Test Case 'ErrorHandling.test_throwsErrorInAssertionButFailsWhenCheckingError' started.
63
- // CHECK: .*/ErrorHandling/main.swift:\d+: error: ErrorHandling.test_throwsErrorInAssertionButFailsWhenCheckingError : XCTAssertEqual failed: \("Optional\("an error message"\)"\) is not equal to \("Optional\(""\)"\) -
63
+ // CHECK: .*/ErrorHandling/main.swift:\d+: error: ErrorHandling.test_throwsErrorInAssertionButFailsWhenCheckingError : XCTAssertEqual failed: \("Optional\("an error message"\)"\) is not equal to \("Optional\(""\)"\) -
64
64
// CHECK: Test Case 'ErrorHandling.test_throwsErrorInAssertionButFailsWhenCheckingError' failed \(\d+\.\d+ seconds\).
65
65
func test_throwsErrorInAssertionButFailsWhenCheckingError( ) {
66
66
XCTAssertThrowsError ( try functionThatDoesThrowError ( ) ) { error in
@@ -77,7 +77,7 @@ class ErrorHandling: XCTestCase {
77
77
}
78
78
79
79
// CHECK: Test Case 'ErrorHandling.test_canAndDoesThrowErrorFromTestMethod' started.
80
- // CHECK: \<EXPR\>:0: unexpected error: ErrorHandling.test_canAndDoesThrowErrorFromTestMethod : threw error "AnError\("an error message"\)" -
80
+ // CHECK: \<EXPR\>:0: unexpected error: ErrorHandling.test_canAndDoesThrowErrorFromTestMethod : threw error "AnError\("an error message"\)" -
81
81
// CHECK: Test Case 'ErrorHandling.test_canAndDoesThrowErrorFromTestMethod' failed \(\d+\.\d+ seconds\).
82
82
func test_canAndDoesThrowErrorFromTestMethod( ) throws {
83
83
try functionThatDoesThrowError ( )
@@ -94,7 +94,7 @@ class ErrorHandling: XCTestCase {
94
94
}
95
95
96
96
// CHECK: Test Case 'ErrorHandling.test_assertionExpressionCanThrow' started.
97
- // CHECK: .*/ErrorHandling/main.swift:\d+: unexpected error: ErrorHandling.test_assertionExpressionCanThrow : XCTAssertEqual threw error "AnError\("did not actually return"\)" -
97
+ // CHECK: .*/ErrorHandling/main.swift:\d+: unexpected error: ErrorHandling.test_assertionExpressionCanThrow : XCTAssertEqual threw error "AnError\("did not actually return"\)" -
98
98
// CHECK: Test Case 'ErrorHandling.test_assertionExpressionCanThrow' failed \(\d+\.\d+ seconds\).
99
99
func test_assertionExpressionCanThrow( ) {
100
100
XCTAssertEqual ( try functionThatShouldReturnButThrows ( ) , 1 )
0 commit comments