Skip to content

Commit c7d851b

Browse files
authored
Merge pull request #47 from meatball133/1.1.2
[1.1.2]: Update test cases
2 parents c743b1c + 4900e2d commit c7d851b

File tree

25 files changed

+4
-177
lines changed

25 files changed

+4
-177
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.1.2
2+
3+
- Updated test files to follow a more modern design.
4+
15
# 1.1.1
26

37
- Fixed an issue causing help functions to be marked as test cases

tests/compile-error/Tests/CompileErrorTests/CompileErrorTests.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,4 @@ final class CompileErrorTests: XCTestCase {
66
func testAdd() {
77
XCTAssertEqual(sum(2, 3), 5)
88
}
9-
10-
static var allTests = [
11-
("testAdd", testAdd)
12-
]
139
}

tests/compile-error/Tests/CompileErrorTests/XCTestManifests.swift

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/compile-error/Tests/LinuxMain.swift

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/multiple-tests-all-pass/Tests/LinuxMain.swift

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/multiple-tests-all-pass/Tests/TaskMultipleAllPassTests/TaskMultipleAllPassTests.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ final class TaskMultipleAllPassTests: XCTestCase {
1414
func testMul() {
1515
XCTAssertEqual(mul(2, 3), 6)
1616
}
17-
18-
static var allTests = [
19-
("testAdd", testAdd),
20-
("testSub", testSub),
21-
("testMul", testMul),
22-
]
2317
}
2418

2519
final class TaskSecondSuite: XCTestCase {
@@ -34,10 +28,4 @@ final class TaskSecondSuite: XCTestCase {
3428
func testMul_2() {
3529
XCTAssertEqual(mul(12, 13), 156)
3630
}
37-
38-
static var allTests = [
39-
("testAdd_2", testAdd_2),
40-
("testSub_2", testSub_2),
41-
("testMul_2", testMul_2),
42-
]
4331
}

tests/multiple-tests-all-pass/Tests/TaskMultipleAllPassTests/XCTestManifests.swift

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/multiple-tests-multiple-fails/Tests/LinuxMain.swift

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/multiple-tests-multiple-fails/Tests/TaskMultipleMultipleFailsTests/TaskMultipleMultipleFailsTests.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,4 @@ final class TaskMultipleMultipleFailsTests: XCTestCase {
1414
func testMul() {
1515
XCTAssertEqual(mul(2, 3), 6)
1616
}
17-
18-
static var allTests = [
19-
("testAdd", testAdd),
20-
("testSub", testSub),
21-
("testMul", testMul),
22-
]
2317
}

tests/multiple-tests-multiple-fails/Tests/TaskMultipleMultipleFailsTests/XCTestManifests.swift

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/multiple-tests-single-fail/Tests/LinuxMain.swift

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/multiple-tests-single-fail/Tests/TaskMultipleSingleFailTests/TaskMultipleSingleFailTests.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ final class TaskMultipleSingleFailTests: XCTestCase {
1616
func testMul() {
1717
XCTAssertEqual(mul(2, 3), 6)
1818
}
19-
20-
static var allTests = [
21-
("testAdd", testAdd),
22-
("testSub", testSub),
23-
("testMul", testMul),
24-
]
2519
}
2620

2721
final class TaskSecondSuite: XCTestCase {
@@ -38,10 +32,4 @@ final class TaskSecondSuite: XCTestCase {
3832
func testMul_2() {
3933
XCTAssertEqual(mul(12, 13), 156)
4034
}
41-
42-
static var allTests = [
43-
("testAdd_2", testAdd_2),
44-
("testSub_2", testSub_2),
45-
("testMul_2", testMul_2),
46-
]
4735
}

tests/multiple-tests-single-fail/Tests/TaskMultipleSingleFailTests/XCTestManifests.swift

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/multiple-tests-with-exception/Tests/LinuxMain.swift

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/MultipleWithExceptionTests.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,4 @@ final class MultipleWithExceptionTests: XCTestCase {
1818
func testThrow() {
1919
XCTAssertEqual(try throwErr(2, 0), 6)
2020
}
21-
22-
static var allTests = [
23-
("testAdd", testAdd),
24-
("testSub", testSub),
25-
("testMul", testMul),
26-
("testThrow", testThrow),
27-
]
2821
}

tests/multiple-tests-with-exception/Tests/MultipleWithExceptionTests/XCTestManifests.swift

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/single-test-that-fails/Tests/LinuxMain.swift

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/single-test-that-fails/Tests/SingleThatFailsTests/SingleThatFailsTests.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,4 @@ final class SingleThatFailsTests: XCTestCase {
66
func testAdd() {
77
XCTAssertEqual(sum(2, 3), 5, "2+3 should equal 5")
88
}
9-
10-
static var allTests = [
11-
("testAdd", testAdd)
12-
]
139
}

tests/single-test-that-fails/Tests/SingleThatFailsTests/XCTestManifests.swift

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/single-test-that-passes/Tests/LinuxMain.swift

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/single-test-that-passes/Tests/SingleThatPassesTests/SingleThatPassesTests.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,4 @@ final class SingleThatPassesTests: XCTestCase {
66
func testAdd() {
77
XCTAssertEqual(sum(2, 3), 5, "2+3 should equal 5")
88
}
9-
10-
static var allTests = [
11-
("testAdd", testAdd)
12-
]
139
}

tests/single-test-that-passes/Tests/SingleThatPassesTests/XCTestManifests.swift

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/single-test-with-exception/Tests/LinuxMain.swift

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/single-test-with-exception/Tests/SingleWithExceptionTests/SingleWithExceptionTests.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,4 @@ final class SingleWithExceptionTests: XCTestCase {
66
func testAdd() {
77
XCTAssertEqual(try sum(2, 3), 5, "2+3 should equal 5")
88
}
9-
10-
static var allTests = [
11-
("testAdd", testAdd)
12-
]
139
}

tests/single-test-with-exception/Tests/SingleWithExceptionTests/XCTestManifests.swift

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)