Class PartialSortTest


  • public class PartialSortTest
    extends TestCase
    PartialSortTest is a unit test for the partial-sort algorithm FunUtil.partialSort(T[], java.util.Comparator<T>, int), which supports MDX functions like TopCount and BottomCount. No MDX here; there are tests of TopCount etc in FunctionTest.
    Since:
    Nov 2008
    Author:
    Marc Berkowitz
    • Field Detail

    • Constructor Detail

      • PartialSortTest

        public PartialSortTest()
    • Method Detail

      • testPredicate1

        public void testPredicate1()
      • testPredicate2

        public void testPredicate2()
      • testQuick

        public void testQuick()
      • testOnAlreadySorted

        public void testOnAlreadySorted()
      • testOnAlreadyReverseSorted

        public void testOnAlreadyReverseSorted()
      • testOnRandomIntegers

        public void testOnRandomIntegers()
      • testOnManyRandomIntegers

        public void testOnManyRandomIntegers()
      • testPredicateIsStablySorted

        public void testPredicateIsStablySorted()
      • testStableQuick

        public void testStableQuick()
      • testStableOnRandomItems

        public void testStableOnRandomItems()
      • testSpeed

        public void testSpeed()