fix: avoid infinite loop in SwapSort (#5248)

---------

Co-authored-by: vil02 <65706193+vil02@users.noreply.github.com>
This commit is contained in:
Alex Klymenko
2024-06-24 09:49:01 +03:00
committed by GitHub
parent 308bdcfc19
commit a5b4c6173f
2 changed files with 11 additions and 35 deletions

View File

@ -0,0 +1,8 @@
package com.thealgorithms.sorts;
public class SwapSortTest extends SortingAlgorithmTest {
@Override
SortAlgorithm getSortAlgorithm() {
return new SwapSort();
}
}