Travis build: 1970 [cron]
This commit is contained in:
File diff suppressed because one or more lines are too long
5
test/initializeNDArray/initializeNDArray.js
Normal file
5
test/initializeNDArray/initializeNDArray.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
const initializeNDArray = (val, ...args) =>
|
||||||
|
args.length === 0
|
||||||
|
? val
|
||||||
|
: Array.from({ length: args[0] }).map(() => initializeNDArray(val, ...args.slice(1)));
|
||||||
|
module.exports = initializeNDArray;
|
||||||
13
test/initializeNDArray/initializeNDArray.test.js
Normal file
13
test/initializeNDArray/initializeNDArray.test.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
const test = require('tape');
|
||||||
|
const initializeNDArray = require('./initializeNDArray.js');
|
||||||
|
|
||||||
|
test('Testing initializeNDArray', (t) => {
|
||||||
|
//For more information on all the methods supported by tape
|
||||||
|
//Please go to https://github.com/substack/tape
|
||||||
|
t.true(typeof initializeNDArray === 'function', 'initializeNDArray is a Function');
|
||||||
|
//t.deepEqual(initializeNDArray(args..), 'Expected');
|
||||||
|
//t.equal(initializeNDArray(args..), 'Expected');
|
||||||
|
//t.false(initializeNDArray(args..), 'Expected');
|
||||||
|
//t.throws(initializeNDArray(args..), 'Expected');
|
||||||
|
t.end();
|
||||||
|
});
|
||||||
12
test/testlog
12
test/testlog
@ -1,4 +1,4 @@
|
|||||||
Test log for: Sun Apr 15 2018 20:54:30 GMT+0000 (UTC)
|
Test log for: Mon Apr 16 2018 20:54:57 GMT+0000 (UTC)
|
||||||
|
|
||||||
> 30-seconds-of-code@0.0.3 test /home/travis/build/Chalarangelo/30-seconds-of-code
|
> 30-seconds-of-code@0.0.3 test /home/travis/build/Chalarangelo/30-seconds-of-code
|
||||||
> tape test/**/*.test.js | tap-spec
|
> tape test/**/*.test.js | tap-spec
|
||||||
@ -733,6 +733,10 @@ Test log for: Sun Apr 15 2018 20:54:30 GMT+0000 (UTC)
|
|||||||
✔ initializeArrayWithValues is a Function
|
✔ initializeArrayWithValues is a Function
|
||||||
✔ Initializes and fills an array with the specified values
|
✔ Initializes and fills an array with the specified values
|
||||||
|
|
||||||
|
Testing initializeNDArray
|
||||||
|
|
||||||
|
✔ initializeNDArray is a Function
|
||||||
|
|
||||||
Testing intersection
|
Testing intersection
|
||||||
|
|
||||||
✔ intersection is a Function
|
✔ intersection is a Function
|
||||||
@ -1983,15 +1987,15 @@ Test log for: Sun Apr 15 2018 20:54:30 GMT+0000 (UTC)
|
|||||||
|
|
||||||
✔ zipWith is a Function
|
✔ zipWith is a Function
|
||||||
✔ Sends a GET request
|
✔ Sends a GET request
|
||||||
✔ Sends a POST request
|
|
||||||
✔ Runs the function provided
|
✔ Runs the function provided
|
||||||
✔ Runs promises in series
|
✔ Runs promises in series
|
||||||
|
✔ Sends a POST request
|
||||||
✔ Works as expecting, passing arguments properly
|
✔ Works as expecting, passing arguments properly
|
||||||
✔ Works with multiple promises
|
✔ Works with multiple promises
|
||||||
|
|
||||||
|
|
||||||
total: 1010
|
total: 1011
|
||||||
passing: 1010
|
passing: 1011
|
||||||
duration: 2.4s
|
duration: 2.4s
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user