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