Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
3
test/randomIntArrayInRange/randomIntArrayInRange.js
Normal file
3
test/randomIntArrayInRange/randomIntArrayInRange.js
Normal file
@ -0,0 +1,3 @@
|
||||
const randomIntArrayInRange = (min, max, n = 1) =>
|
||||
Array.from({ length: n }, () => Math.floor(Math.random() * (max - min + 1)) + min);
|
||||
module.exports = randomIntArrayInRange;
|
||||
Reference in New Issue
Block a user