We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Nice - but how would you write unit tests that exercise all the combinations of the sorting? Making the Student class Comparable, or at least having a separate Comparator, would help greatly with testing.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Sort
You are viewing a single comment's thread. Return to all comments →
Nice - but how would you write unit tests that exercise all the combinations of the sorting? Making the Student class Comparable, or at least having a separate Comparator, would help greatly with testing.