-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
948e553
commit 154a57e
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// SelectionSortTest.swift | ||
// | ||
// | ||
// Created by Brayan Martinez on 30/6/24. | ||
// | ||
|
||
import Testing | ||
@testable import Util | ||
@testable import Ordering | ||
|
||
@Test func selectionSortTest() async throws { | ||
var data: [Int] = getData() | ||
|
||
print("-- SelectionSort -- \n\n") | ||
|
||
//before | ||
print("Before Sorting: \n") | ||
printData(data: &data) | ||
|
||
//sort | ||
print("\n") | ||
selectionSort(data: &data) | ||
|
||
//after | ||
print("After Sorting: \n") | ||
printData(data: &data) | ||
|
||
print("Test Passed!") | ||
} |