File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Tests/Functional/TestCaseLifecycle Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ class SetUpTearDownTestCase: XCTestCase {
19
19
20
20
override func setUp( ) {
21
21
super. setUp ( )
22
- print ( " In \( __FUNCTION__ ) " )
22
+ print ( " In \( #function ) " )
23
23
value = 42
24
24
}
25
25
26
26
override func tearDown( ) {
27
27
super. tearDown ( )
28
- print ( " In \( __FUNCTION__ ) " )
28
+ print ( " In \( #function ) " )
29
29
}
30
30
31
31
// CHECK: Test Case 'SetUpTearDownTestCase.test_hasValueFromSetUp' started.
@@ -34,7 +34,7 @@ class SetUpTearDownTestCase: XCTestCase {
34
34
// CHECK: In tearDown\(\)
35
35
// CHECK: Test Case 'SetUpTearDownTestCase.test_hasValueFromSetUp' passed \(\d+\.\d+ seconds\).
36
36
func test_hasValueFromSetUp( ) {
37
- print ( " In \( __FUNCTION__ ) " )
37
+ print ( " In \( #function ) " )
38
38
XCTAssertEqual ( value, 42 )
39
39
}
40
40
}
You can’t perform that action at this time.
0 commit comments