You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('should work with large arrays', function() {
this.timeout(3000);
let array = Array(1000000).map(() => {
return parseInt((Math.random() * 1000000000), 10);
});
expect(sort(array)).to.be.sorted();
});
This returns an empty array of length 1000000 but not initialised. Therefore, it try to sort an empty array instead of an array of random integer values.
The text was updated successfully, but these errors were encountered:
Just a head up.
in test /tests/sorting/radix-sort.spec.js
If you use this construction:
Like in test
This returns an empty array of length 1000000 but not initialised. Therefore, it try to sort an empty array instead of an array of random integer values.
The text was updated successfully, but these errors were encountered: