Skip to content

Commit

Permalink
Merge pull request #47 from meatball133/1.1.2
Browse files Browse the repository at this point in the history
[1.1.2]: Update test cases
  • Loading branch information
meatball133 authored Jul 14, 2023
2 parents c743b1c + 4900e2d commit c7d851b
Show file tree
Hide file tree
Showing 25 changed files with 4 additions and 177 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.1.2

- Updated test files to follow a more modern design.

# 1.1.1

- Fixed an issue causing help functions to be marked as test cases
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@ final class CompileErrorTests: XCTestCase {
func testAdd() {
XCTAssertEqual(sum(2, 3), 5)
}

static var allTests = [
("testAdd", testAdd)
]
}

This file was deleted.

7 changes: 0 additions & 7 deletions tests/compile-error/Tests/LinuxMain.swift

This file was deleted.

7 changes: 0 additions & 7 deletions tests/multiple-tests-all-pass/Tests/LinuxMain.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ final class TaskMultipleAllPassTests: XCTestCase {
func testMul() {
XCTAssertEqual(mul(2, 3), 6)
}

static var allTests = [
("testAdd", testAdd),
("testSub", testSub),
("testMul", testMul),
]
}

final class TaskSecondSuite: XCTestCase {
Expand All @@ -34,10 +28,4 @@ final class TaskSecondSuite: XCTestCase {
func testMul_2() {
XCTAssertEqual(mul(12, 13), 156)
}

static var allTests = [
("testAdd_2", testAdd_2),
("testSub_2", testSub_2),
("testMul_2", testMul_2),
]
}

This file was deleted.

6 changes: 0 additions & 6 deletions tests/multiple-tests-multiple-fails/Tests/LinuxMain.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,4 @@ final class TaskMultipleMultipleFailsTests: XCTestCase {
func testMul() {
XCTAssertEqual(mul(2, 3), 6)
}

static var allTests = [
("testAdd", testAdd),
("testSub", testSub),
("testMul", testMul),
]
}

This file was deleted.

6 changes: 0 additions & 6 deletions tests/multiple-tests-single-fail/Tests/LinuxMain.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ final class TaskMultipleSingleFailTests: XCTestCase {
func testMul() {
XCTAssertEqual(mul(2, 3), 6)
}

static var allTests = [
("testAdd", testAdd),
("testSub", testSub),
("testMul", testMul),
]
}

final class TaskSecondSuite: XCTestCase {
Expand All @@ -38,10 +32,4 @@ final class TaskSecondSuite: XCTestCase {
func testMul_2() {
XCTAssertEqual(mul(12, 13), 156)
}

static var allTests = [
("testAdd_2", testAdd_2),
("testSub_2", testSub_2),
("testMul_2", testMul_2),
]
}

This file was deleted.

6 changes: 0 additions & 6 deletions tests/multiple-tests-with-exception/Tests/LinuxMain.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,4 @@ final class MultipleWithExceptionTests: XCTestCase {
func testThrow() {
XCTAssertEqual(try throwErr(2, 0), 6)
}

static var allTests = [
("testAdd", testAdd),
("testSub", testSub),
("testMul", testMul),
("testThrow", testThrow),
]
}

This file was deleted.

6 changes: 0 additions & 6 deletions tests/single-test-that-fails/Tests/LinuxMain.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@ final class SingleThatFailsTests: XCTestCase {
func testAdd() {
XCTAssertEqual(sum(2, 3), 5, "2+3 should equal 5")
}

static var allTests = [
("testAdd", testAdd)
]
}

This file was deleted.

6 changes: 0 additions & 6 deletions tests/single-test-that-passes/Tests/LinuxMain.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@ final class SingleThatPassesTests: XCTestCase {
func testAdd() {
XCTAssertEqual(sum(2, 3), 5, "2+3 should equal 5")
}

static var allTests = [
("testAdd", testAdd)
]
}

This file was deleted.

6 changes: 0 additions & 6 deletions tests/single-test-with-exception/Tests/LinuxMain.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@ final class SingleWithExceptionTests: XCTestCase {
func testAdd() {
XCTAssertEqual(try sum(2, 3), 5, "2+3 should equal 5")
}

static var allTests = [
("testAdd", testAdd)
]
}

This file was deleted.

0 comments on commit c7d851b

Please sign in to comment.