ran npm run tdd & generated TDD
This commit is contained in:
@ -0,0 +1,2 @@
|
||||
module.exports = (end, start = 0, step = 1) =>
|
||||
Array.from({ length: Math.ceil((end + 1 - start) / step) }).map((v, i) => i * step + start);
|
||||
@ -0,0 +1,13 @@
|
||||
const test = require('tape');
|
||||
const initializeArrayWithRange = require('./initializeArrayWithRange.js');
|
||||
|
||||
test('Testing initializeArrayWithRange', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof initializeArrayWithRange === 'function', 'initializeArrayWithRange is a Function');
|
||||
//t.deepEqual(initializeArrayWithRange(args..), 'Expected');
|
||||
//t.equal(initializeArrayWithRange(args..), 'Expected');
|
||||
//t.false(initializeArrayWithRange(args..), 'Expected');
|
||||
//t.throws(initializeArrayWithRange(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
Reference in New Issue
Block a user