Skip to content

Commit 3a1ae3b

Browse files
committed
__FUNCTION__ -> #function
1 parent e5bcc2a commit 3a1ae3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Functional/TestCaseLifecycle/main.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ class SetUpTearDownTestCase: XCTestCase {
1919

2020
override func setUp() {
2121
super.setUp()
22-
print("In \(__FUNCTION__)")
22+
print("In \(#function)")
2323
value = 42
2424
}
2525

2626
override func tearDown() {
2727
super.tearDown()
28-
print("In \(__FUNCTION__)")
28+
print("In \(#function)")
2929
}
3030

3131
// CHECK: Test Case 'SetUpTearDownTestCase.test_hasValueFromSetUp' started.
@@ -34,7 +34,7 @@ class SetUpTearDownTestCase: XCTestCase {
3434
// CHECK: In tearDown\(\)
3535
// CHECK: Test Case 'SetUpTearDownTestCase.test_hasValueFromSetUp' passed \(\d+\.\d+ seconds\).
3636
func test_hasValueFromSetUp() {
37-
print("In \(__FUNCTION__)")
37+
print("In \(#function)")
3838
XCTAssertEqual(value, 42)
3939
}
4040
}

0 commit comments

Comments
 (0)