practicesorting
Check sorting with two properties
Anonymous
A sorting test can verify that the output is nondecreasing and has the same multiset of values as the input. The first catches ordering errors; the second catches missing or duplicated elements. Include repeated values, since a set comparison would miss multiplicity.
0