mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-28 15:02:46 +08:00
fix: avoid infinite loop in SwapSort
(#5248)
--------- Co-authored-by: vil02 <65706193+vil02@users.noreply.github.com>
This commit is contained in:
8
src/test/java/com/thealgorithms/sorts/SwapSortTest.java
Normal file
8
src/test/java/com/thealgorithms/sorts/SwapSortTest.java
Normal file
@ -0,0 +1,8 @@
|
||||
package com.thealgorithms.sorts;
|
||||
|
||||
public class SwapSortTest extends SortingAlgorithmTest {
|
||||
@Override
|
||||
SortAlgorithm getSortAlgorithm() {
|
||||
return new SwapSort();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user