Name changed for easy to find.
This commit is contained in:
2
test/randomIntArrayInRange/randomIntArrayInRange.js
Normal file
2
test/randomIntArrayInRange/randomIntArrayInRange.js
Normal file
@ -0,0 +1,2 @@
|
||||
module.exports = randomIntArrayInRange = (min, max, n = 1) =>
|
||||
Array.from({ length: n }, () => Math.floor(Math.random() * (max - min + 1)) + min);
|
||||
13
test/randomIntArrayInRange/randomIntArrayInRange.test.js
Normal file
13
test/randomIntArrayInRange/randomIntArrayInRange.test.js
Normal file
@ -0,0 +1,13 @@
|
||||
const test = require('tape');
|
||||
const randomIntArrayInRange = require('./randomIntArrayInRange.js');
|
||||
|
||||
test('Testing randomIntArrayInRange', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof randomIntArrayInRange === 'function', 'randomIntArrayInRange is a Function');
|
||||
//t.deepEqual(randomIntArrayInRange(args..), 'Expected');
|
||||
//t.equal(randomIntArrayInRange(args..), 'Expected');
|
||||
//t.false(randomIntArrayInRange(args..), 'Expected');
|
||||
//t.throws(randomIntArrayInRange(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
Reference in New Issue
Block a user