/**
* Unit test cases for the implementation of Sorting Algorithms.
*/
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
public class SortAlgosTest
{
/**
* the primitive array to use for testing
*/
private Integer numbers;
// returns a primitive array loaded with the given items
private static Integer[] load( Integer... items )
{
return items;
}
@Test
public void test_Algo?Sort()
{
// testing ...
numbers = load( a, b, c, d, e, f, g );
numbers? = Algo?Sort.method?( numbers );
assertEquals( SortUtils.toString(numbers), "[? ? ? ? ? ? ? ?]" );
*** test for empty, single, two, many ***
*** for MergeSort do not include empty ***
}
}