I have searched for over 15 minutes on the internet for learning JUnit but to no avail. My sorting algorithm clearly was not successful in some margin cases, but JUnit only tells me that I am not right for a number at a certain position, which makes it incredible for me to debug the wrong array that I missorted. How can I know which specific array I failed on in its entirety? I tried enclosing a try ... catch.. Statement but it didn't help.
I have searched for over 15 minutes on the internet for learning JUnit but to no avail. My sorting algorithm clearly was not successful in some margin cases, but JUnit only tells me that I am not right for a number at a certain position, which makes it incredible for me to debug the wrong array that I missorted. How can I know which specific array I failed on in its entirety? I tried enclosing a try ... catch.. Statement but it didn't help.