Skip to content

[1.1.2]: Update test cases #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.