Name changed for easy to find.

This commit is contained in:
ergenekonyigit
2018-01-15 14:25:18 +03:00
parent 81b48faf5d
commit aa70bb10ca
7 changed files with 30 additions and 39 deletions

View File

@ -0,0 +1,2 @@
module.exports = randomIntArrayInRange = (min, max, n = 1) =>
Array.from({ length: n }, () => Math.floor(Math.random() * (max - min + 1)) + min);

View 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();
});