@@ -16,7 +16,7 @@ class AlamofireTests: _TestCase
1616
1717 func testFulfill( )
1818 {
19- let expect = self . expectationWithDescription ( __FUNCTION__ )
19+ let expect = self . expectationWithDescription ( #function )
2020
2121 let task = Task < Progress , String , NSError > { progress, fulfill, reject, configure in
2222
@@ -46,7 +46,7 @@ class AlamofireTests: _TestCase
4646
4747 func testReject( )
4848 {
49- let expect = self . expectationWithDescription ( __FUNCTION__ )
49+ let expect = self . expectationWithDescription ( #function )
5050
5151 let task = Task < Progress , String ? , NSError > { progress, fulfill, reject, configure in
5252
@@ -86,7 +86,7 @@ class AlamofireTests: _TestCase
8686
8787 func testProgress( )
8888 {
89- let expect = self . expectationWithDescription ( __FUNCTION__ )
89+ let expect = self . expectationWithDescription ( #function )
9090
9191 // define task
9292 let task = Task < Progress , String , NSError > { progress, fulfill, reject, configure in
@@ -129,7 +129,7 @@ class AlamofireTests: _TestCase
129129
130130 func testNSProgress( )
131131 {
132- let expect = self . expectationWithDescription ( __FUNCTION__ )
132+ let expect = self . expectationWithDescription ( #function )
133133 let nsProgress = NSProgress ( totalUnitCount: 100 )
134134
135135 // define task
@@ -176,7 +176,7 @@ class AlamofireTests: _TestCase
176176 //
177177 func testCancel( )
178178 {
179- let expect = self . expectationWithDescription ( __FUNCTION__ )
179+ let expect = self . expectationWithDescription ( #function )
180180
181181 let task = Task < Progress , String ? , NSError > { progress, fulfill, reject, configure in
182182
0 commit comments