Skip to content

Commit 6c1352c

Browse files
committed
fix test input
1 parent 45440c4 commit 6c1352c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SortingAlgorithmsTests/SortingAlgorithmsTests.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class SortingAlgorithmsTests: XCTestCase {
3939
let swaps: [(x0: Int, x1: Int)] = insertionSort.generateSwaps(from: [1,3,2,5,4])
4040

4141
XCTAssert(swaps.count == 2)
42-
XCTAssert((x0: 2, x1: 1) == swaps[0])
43-
XCTAssert((x0: 4, x1: 3) == swaps[1])
42+
XCTAssert((x0: 1, x1: 2) == swaps[0])
43+
XCTAssert((x0: 3, x1: 4) == swaps[1])
4444
}
4545

4646
func test_InsertionSort_already_sorted() {

0 commit comments

Comments
 (0)