diff options
Diffstat (limited to 'test_deliverable/testcases/test_QUICKSORT_driver.c')
-rw-r--r-- | test_deliverable/testcases/test_QUICKSORT_driver.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test_deliverable/testcases/test_QUICKSORT_driver.c b/test_deliverable/testcases/test_QUICKSORT_driver.c new file mode 100644 index 0000000..9ba336e --- /dev/null +++ b/test_deliverable/testcases/test_QUICKSORT_driver.c @@ -0,0 +1,9 @@ +void quickSort(int*, int, int); + +int main() +{ + int a[9] = { 7, 12, 1, -2, 0, 15, 4, 11, 9}; + quickSort( a, 0, 8); + + return !( a[0]==-2 && a[1]==0 && a[2]==1 && a[3]==4 && a[4]==7 && a[5]==9 && a[6]==11 && a[7]==12 && a[8]==15 ); +} |