package org.psjava.example.algo;

import junit.framework.Assert;

import org.junit.Test;
import org.psjava.algo.sequence.sort.MergeSort;
import org.psjava.algo.sequence.sort.RandomizedQuicksort;
import org.psjava.ds.array.MutableArray;
import org.psjava.ds.array.MutableArrayFromValues;
import org.psjava.util.DefaultComparator;

/**
 * @implementation {@link RandomizedQuicksort}
 * @see {@link SortingAlgorithmExample}
 */
public class MergeSortExample {
	@Test
	public void example() {
		MutableArray<Integer> array = MutableArrayFromValues.create(2, 1, 3);
		MergeSort.getInstance().sort(array, new DefaultComparator<Integer>());
		Assert.assertEquals("(1,2,3)", array.toString());
	}
}

@@ -140,67 +140,8 @@
 t;%0D%0A
-import org.psjava.algo.sequence.sort.RandomizedQuicksort;%0D%0A
 impo
@@ -310,24 +310,14 @@
 ink 
-RandomizedQuicks
+MergeS
 ort%7D

fix link in example doc