public void testSortDescending() { testSortDescending(new short[] {}, new short[] {}); testSortDescending(new short[] {1}, new short[] {1}); testSortDescending(new short[] {1, 2}, new short[] {2, 1}); testSortDescending(new short[] {1, 3, 1}, new short[] {3, 1, 1}); testSortDescending(new short[] {-1, 1, -2, 2}, new short[] {2, 1, -1, -2}); }
public void testSortDescendingIndexed() { testSortDescending(new short[] {}, 0, 0, new short[] {}); testSortDescending(new short[] {1}, 0, 1, new short[] {1}); testSortDescending(new short[] {1, 2}, 0, 2, new short[] {2, 1}); testSortDescending(new short[] {1, 3, 1}, 0, 2, new short[] {3, 1, 1}); testSortDescending(new short[] {1, 3, 1}, 0, 1, new short[] {1, 3, 1}); testSortDescending(new short[] {-1, -2, 1, 2}, 1, 3, new short[] {-1, 1, -2, 2}); }
public void testSortDescending() { testSortDescending(new short[] {}, new short[] {}); testSortDescending(new short[] {1}, new short[] {1}); testSortDescending(new short[] {1, 2}, new short[] {2, 1}); testSortDescending(new short[] {1, 3, 1}, new short[] {3, 1, 1}); testSortDescending(new short[] {-1, 1, -2, 2}, new short[] {2, 1, -1, -2}); }
public void testSortDescendingIndexed() { testSortDescending(new short[] {}, 0, 0, new short[] {}); testSortDescending(new short[] {1}, 0, 1, new short[] {1}); testSortDescending(new short[] {1, 2}, 0, 2, new short[] {2, 1}); testSortDescending(new short[] {1, 3, 1}, 0, 2, new short[] {3, 1, 1}); testSortDescending(new short[] {1, 3, 1}, 0, 1, new short[] {1, 3, 1}); testSortDescending(new short[] {-1, -2, 1, 2}, 1, 3, new short[] {-1, 1, -2, 2}); }