Skip to content

Instantly share code, notes, and snippets.

@arunma
Created May 31, 2013 12:20
Show Gist options
  • Select an option

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

Select an option

Save arunma/5684629 to your computer and use it in GitHub Desktop.
Quick Sort Test
package com.sorting.quick;
import static com.sorting.insert.SortUtils.arrayToString;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class QuickSortTest {
@Test
public void testQuickSort() {
int [] input=new int[]{6,1,7,9,3,8,2,5,4,0};
QuickSort sort = new QuickSort();
int[] sortedArray = sort.sort(input);
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