You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by sr...@apache.org on 2009/12/11 21:38:08 UTC

svn commit: r889806 - /lucene/mahout/trunk/matrix/src/test/java/org/apache/mahout/matrix/GenericSortingTest.java

Author: srowen
Date: Fri Dec 11 20:38:08 2009
New Revision: 889806

URL: http://svn.apache.org/viewvc?rev=889806&view=rev
Log:
Oops restore proper testing of stability

Modified:
    lucene/mahout/trunk/matrix/src/test/java/org/apache/mahout/matrix/GenericSortingTest.java

Modified: lucene/mahout/trunk/matrix/src/test/java/org/apache/mahout/matrix/GenericSortingTest.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/matrix/src/test/java/org/apache/mahout/matrix/GenericSortingTest.java?rev=889806&r1=889805&r2=889806&view=diff
==============================================================================
--- lucene/mahout/trunk/matrix/src/test/java/org/apache/mahout/matrix/GenericSortingTest.java (original)
+++ lucene/mahout/trunk/matrix/src/test/java/org/apache/mahout/matrix/GenericSortingTest.java Fri Dec 11 20:38:08 2009
@@ -85,7 +85,7 @@
 	@Test
 	public void testMergeSort() {
 		String[] sd = {"z", "a", "a", "q", "1"};
-		String[] correct = {"1", "a", "a", "q", "z"};
+		String[] correct = {sd[4], sd[1], sd[2], sd[3], sd[0]};
 
 		SomethingToSortStable sts = new SomethingToSortStable(sd);
 		GenericSorting.mergeSort(0, 5, sts, sts);