Skip to content

Commit 181d7c9

Browse files
committed
Merge pull request #88 from jasonnoahchoi/TestClean
Fix coding style of param type () -> () to () -> Void
2 parents c7d553a + 7a1bc66 commit 181d7c9

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

Tests/XCTestCaseProvider/XCTestCaseProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// swift-corelibs-xctest.
2222
#if os(OSX)
2323
public protocol XCTestCaseProvider {
24-
var allTests : [(String, () -> ())] { get }
24+
var allTests : [(String, () -> Void)] { get }
2525
}
2626

2727
public func XCTMain(testCases: [XCTestCaseProvider]) {

Tests/dep/FunctionalBuildTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import XCTestCaseProvider
1919

2020
class FunctionalBuildTests: XCTestCase, XCTestCaseProvider {
2121

22-
var allTests : [(String, () -> ())] {
22+
var allTests : [(String, () -> Void)] {
2323
return [
2424
("testEmptyPackageSwiftExitsWithZero", testEmptyPackageSwiftExitsWithZero),
2525
("testIgnoreFiles", testIgnoreFiles),

Tests/dep/GetTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import XCTestCaseProvider
1515

1616
class GetTests: XCTestCase, XCTestCaseProvider {
1717

18-
var allTests : [(String, () -> ())] {
18+
var allTests : [(String, () -> Void)] {
1919
return [
2020
("testRawCloneDoesNotCrashIfManifestIsNotPresent", testRawCloneDoesNotCrashIfManifestIsNotPresent),
2121
]

Tests/dep/ManifestTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import libc
1717

1818
class ManifestTests: XCTestCase, XCTestCaseProvider {
1919

20-
var allTests : [(String, () -> ())] {
20+
var allTests : [(String, () -> Void)] {
2121
return [
2222
("testManifestLoading", testManifestLoading),
2323
]

Tests/dep/PackageTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import XCTestCaseProvider
1414

1515
class PackageTests: XCTestCase, XCTestCaseProvider {
1616

17-
var allTests : [(String, () -> ())] {
17+
var allTests : [(String, () -> Void)] {
1818
return [
1919
("testInitializer", testInitializer)
2020
]

Tests/dep/TargetTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extension Target {
3131

3232
class TargetTests: XCTestCase, XCTestCaseProvider {
3333

34-
var allTests : [(String, () -> ())] {
34+
var allTests : [(String, () -> Void)] {
3535
return [
3636
("test1", test1),
3737
("test2", test2),

Tests/dep/UidTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import XCTestCaseProvider
1414

1515
class ProjectTests: XCTestCase, XCTestCaseProvider {
1616

17-
var allTests : [(String, () -> ())] {
17+
var allTests : [(String, () -> Void)] {
1818
return [
1919
("testUrlEndsInDotGit1", testUrlEndsInDotGit1),
2020
("testUrlEndsInDotGit2", testUrlEndsInDotGit2),

Tests/dep/VersionTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import libc
1616

1717
class VersionTests: XCTestCase, XCTestCaseProvider {
1818

19-
var allTests : [(String, () -> ())] {
19+
var allTests : [(String, () -> Void)] {
2020
return [
2121
("testEquality", testEquality),
2222
("testNegativeValuesBecomeZero", testNegativeValuesBecomeZero),

0 commit comments

Comments
 (0)