Created
June 5, 2013 13:52
-
-
Save arunma/5714013 to your computer and use it in GitHub Desktop.
QuickSort3WayTest
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._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