Created
May 31, 2013 12:20
-
-
Save arunma/5684629 to your computer and use it in GitHub Desktop.
Quick Sort Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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