Package mondrian.olap.fun
Class PartialSortTest
- java.lang.Object
-
- TestCase
-
- mondrian.olap.fun.PartialSortTest
-
public class PartialSortTest extends TestCase
PartialSortTest
is a unit test for the partial-sort algorithmFunUtil.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
PartialSortTest.Item
-
Constructor Summary
Constructors Constructor Description PartialSortTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testOnAlreadyReverseSorted()
void
testOnAlreadySorted()
void
testOnManyRandomIntegers()
void
testOnRandomIntegers()
void
testPredicate1()
void
testPredicate2()
void
testPredicateIsStablySorted()
void
testQuick()
void
testSpeed()
void
testStableOnRandomItems()
void
testStableQuick()
-
-
-
Field Detail
-
random
final Random random
-
-
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()
-
-