diff --git a/test/stableSort/stableSort.test.js b/test/stableSort/stableSort.test.js index 28dcbb057..e8cf95496 100644 --- a/test/stableSort/stableSort.test.js +++ b/test/stableSort/stableSort.test.js @@ -10,12 +10,8 @@ test('Testing stableSort', (t) => { //t.false(stableSort(args..), 'Expected'); //t.throws(stableSort(args..), 'Expected'); - const arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + const arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; const compare = () => 0; - // stable - t.deepEqual(stableSort(arr, compare), arr); - // unstable - t.notDeepEqual([...arr].sort(compare), arr); - + t.deepEqual(stableSort(arr, compare), arr, 'Array is properly sorted'); t.end(); -}); \ No newline at end of file +});