codingdsapractice
A useful property can test many inputs
Anonymous
For a sort, check both that adjacent outputs are ordered and that the output contains exactly the input elements. Checking only order can miss dropped or duplicated values. These properties complement a few hand-picked edge cases.
0