Skip to content

Instantly share code, notes, and snippets.

@arunma
Created June 5, 2013 13:52
Show Gist options
  • Select an option

  • Save arunma/5714013 to your computer and use it in GitHub Desktop.

Select an option

Save arunma/5714013 to your computer and use it in GitHub Desktop.
QuickSort3WayTest
package com.sorting.quick._3way;
import static com.sorting.insert.SortUtils.arrayToString;
import org.junit.Test;
public class QuickSort3WayTest {
@Test
public void testQuickSort() {
int[] input = new int[] { 6, 1, 7, 9, 3, 3, 3, 4, 8, 2, 3, 5, 4, 5, 5, 9, 2, 3, 4, 3, 0 };
QuickSort3Way sort = new QuickSort3Way();
int[] sortedArray = sort.sort(input);
System.out.println(arrayToString(sortedArray));
//assertEquals("0:1:2:3:4:5:6:7:8:9:", arrayToString(sortedArray));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment