Skip to content

Commit 5428c24

Browse files
ikesyoparkera
authored andcommitted
Drop NS prefix from some files to match the class names (#973)
1 parent cedc9d1 commit 5428c24

14 files changed

+65
-65
lines changed

Foundation.xcodeproj/project.pbxproj

Lines changed: 44 additions & 44 deletions
Large diffs are not rendered by default.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

TestFoundation/TestNSBundle.swift renamed to TestFoundation/TestBundle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020

2121

22-
class TestNSBundle : XCTestCase {
22+
class TestBundle : XCTestCase {
2323

24-
static var allTests: [(String, (TestNSBundle) -> () throws -> Void)] {
24+
static var allTests: [(String, (TestBundle) -> () throws -> Void)] {
2525
return [
2626
("test_paths", test_paths),
2727
("test_resources", test_resources),

TestFoundation/TestNSFileHandle.swift renamed to TestFoundation/TestFileHandle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import SwiftXCTest
1616
#endif
1717

18-
class TestNSFileHandle : XCTestCase {
19-
static var allTests : [(String, (TestNSFileHandle) -> () throws -> ())] {
18+
class TestFileHandle : XCTestCase {
19+
static var allTests : [(String, (TestFileHandle) -> () throws -> ())] {
2020
return [
2121
("test_constants", test_constants),
2222
("test_pipe", test_pipe),

TestFoundation/TestNSFileManager.swift renamed to TestFoundation/TestFileManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
import SwiftXCTest
1616
#endif
1717

18-
class TestNSFileManager : XCTestCase {
18+
class TestFileManager : XCTestCase {
1919

20-
static var allTests: [(String, (TestNSFileManager) -> () throws -> Void)] {
20+
static var allTests: [(String, (TestFileManager) -> () throws -> Void)] {
2121
return [
2222
("test_createDirectory", test_createDirectory ),
2323
("test_createFile", test_createFile ),

TestFoundation/TestNSProcessInfo.swift renamed to TestFoundation/TestProcessInfo.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
#endif
1818

1919

20-
class TestNSProcessInfo : XCTestCase {
20+
class TestProcessInfo : XCTestCase {
2121

22-
static var allTests: [(String, (TestNSProcessInfo) -> () throws -> Void)] {
22+
static var allTests: [(String, (TestProcessInfo) -> () throws -> Void)] {
2323
return [
2424
("test_operatingSystemVersion", test_operatingSystemVersion ),
2525
("test_processName", test_processName ),

TestFoundation/TestNSThread.swift renamed to TestFoundation/TestThread.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#endif
1818

1919

20-
class TestNSThread : XCTestCase {
21-
static var allTests: [(String, (TestNSThread) -> () throws -> Void)] {
20+
class TestThread : XCTestCase {
21+
static var allTests: [(String, (TestThread) -> () throws -> Void)] {
2222
return [
2323
("test_currentThread", test_currentThread ),
2424
("test_threadStart", test_threadStart),

TestFoundation/main.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ internal func testBundle() -> Bundle {
2323
XCTMain([
2424
testCase(TestNSAffineTransform.allTests),
2525
testCase(TestNSArray.allTests),
26-
testCase(TestNSBundle.allTests),
26+
testCase(TestBundle.allTests),
2727
testCase(TestNSByteCountFormatter.allTests),
2828
testCase(TestNSCache.allTests),
2929
testCase(TestNSCalendar.allTests),
@@ -36,7 +36,7 @@ XCTMain([
3636
testCase(TestNSDecimal.allTests),
3737
testCase(TestNSDictionary.allTests),
3838
testCase(TestNSError.allTests),
39-
testCase(TestNSFileManager.allTests),
39+
testCase(TestFileManager.allTests),
4040
testCase(TestNSGeometry.allTests),
4141
testCase(TestNSHTTPCookie.allTests),
4242
testCase(TestNSHTTPCookieStorage.allTests),
@@ -57,7 +57,7 @@ XCTMain([
5757
testCase(TestNSPersonNameComponents.allTests),
5858
testCase(TestNSPipe.allTests),
5959
testCase(TestNSPredicate.allTests),
60-
testCase(TestNSProcessInfo.allTests),
60+
testCase(TestProcessInfo.allTests),
6161
testCase(TestNSPropertyList.allTests),
6262
testCase(TestNSRange.allTests),
6363
testCase(TestNSRegularExpression.allTests),
@@ -66,7 +66,7 @@ XCTMain([
6666
testCase(TestNSSet.allTests),
6767
testCase(TestNSStream.allTests),
6868
testCase(TestNSString.allTests),
69-
// testCase(TestNSThread.allTests),
69+
// testCase(TestThread.allTests),
7070
testCase(TestProcess.allTests),
7171
testCase(TestNSTextCheckingResult.allTests),
7272
testCase(TestNSTimer.allTests),
@@ -88,7 +88,7 @@ XCTMain([
8888
testCase(TestNSXMLDocument.allTests),
8989
testCase(TestNSAttributedString.allTests),
9090
testCase(TestNSMutableAttributedString.allTests),
91-
testCase(TestNSFileHandle.allTests),
91+
testCase(TestFileHandle.allTests),
9292
testCase(TestUnitConverter.allTests),
9393
testCase(TestProgressFraction.allTests),
9494
testCase(TestProgress.allTests),

build.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
'Foundation/NSAffineTransform.swift',
308308
'Foundation/NSArray.swift',
309309
'Foundation/NSAttributedString.swift',
310-
'Foundation/NSBundle.swift',
310+
'Foundation/Bundle.swift',
311311
'Foundation/NSByteCountFormatter.swift',
312312
'Foundation/NSCache.swift',
313313
'Foundation/NSCalendar.swift',
@@ -333,8 +333,8 @@
333333
'Foundation/NSEnumerator.swift',
334334
'Foundation/NSError.swift',
335335
'Foundation/NSExpression.swift',
336-
'Foundation/NSFileHandle.swift',
337-
'Foundation/NSFileManager.swift',
336+
'Foundation/FileHandle.swift',
337+
'Foundation/FileManager.swift',
338338
'Foundation/NSFormatter.swift',
339339
'Foundation/NSGeometry.swift',
340340
'Foundation/NSHost.swift',
@@ -358,7 +358,7 @@
358358
'Foundation/NSNumber.swift',
359359
'Foundation/NSNumberFormatter.swift',
360360
'Foundation/NSObjCRuntime.swift',
361-
'Foundation/NSOperation.swift',
361+
'Foundation/Operation.swift',
362362
'Foundation/NSOrderedSet.swift',
363363
'Foundation/NSPathUtilities.swift',
364364
'Foundation/NSPersonNameComponents.swift',
@@ -367,7 +367,7 @@
367367
'Foundation/NSPort.swift',
368368
'Foundation/NSPortMessage.swift',
369369
'Foundation/NSPredicate.swift',
370-
'Foundation/NSProcessInfo.swift',
370+
'Foundation/ProcessInfo.swift',
371371
'Foundation/Progress.swift',
372372
'Foundation/ProgressFraction.swift',
373373
'Foundation/NSPropertyList.swift',
@@ -384,7 +384,7 @@
384384
'Foundation/NSSwiftRuntime.swift',
385385
'Foundation/Process.swift',
386386
'Foundation/NSTextCheckingResult.swift',
387-
'Foundation/NSThread.swift',
387+
'Foundation/Thread.swift',
388388
'Foundation/NSTimer.swift',
389389
'Foundation/NSTimeZone.swift',
390390
'Foundation/NSURL.swift',

0 commit comments

Comments
 (0)