@Test public void testSortDouble() { double[] ret = BenchMarkSort.createRandom_F64(rand,200); StraightInsertionSort.sort(ret); double prev = ret[0]; for( int i = 1; i < ret.length; i++ ) { if( ret[i] < prev ) fail("Not ascending"); } } }
@Test public void testSortDouble() { double[] ret = BenchMarkSort.createRandom_F64(rand,200); StraightInsertionSort.sort(ret); double prev = ret[0]; for( int i = 1; i < ret.length; i++ ) { if( ret[i] < prev ) fail("Not ascending"); } } }