From 137e4daff84caee93672896f6219f3692db93599 Mon Sep 17 00:00:00 2001 From: Or Halimi Date: Fri, 30 Jul 2021 11:17:13 +0300 Subject: [PATCH] fix radix random sort test --- specs/radix-sort/radix-sort.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/radix-sort/radix-sort.test.js b/specs/radix-sort/radix-sort.test.js index b32ae006..f02afb67 100644 --- a/specs/radix-sort/radix-sort.test.js +++ b/specs/radix-sort/radix-sort.test.js @@ -71,6 +71,6 @@ describe.skip("radix sort", function () { .fill() .map(() => Math.floor(Math.random() * 500000)); const ans = radixSort(nums); - expect(ans).toEqual(nums.sort()); + expect(ans).toEqual(nums.sort((a,b) => a -b)); }); });