add basic 2 test for zip snippet
This commit is contained in:
@ -5,9 +5,10 @@ test('Testing zip', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof zip === 'function', 'zip is a Function');
|
||||
//t.deepEqual(zip(args..), 'Expected');
|
||||
t.deepEqual(zip(['a', 'b'], [1, 2], [true, false]), [['a', 1, true], ['b', 2, false]], 'Object was zipped');
|
||||
t.deepEqual(zip(['a'], [1, 2], [true, false]), [['a', 1, true], [undefined, 2, false]], 'Object was zipped');
|
||||
//t.equal(zip(args..), 'Expected');
|
||||
//t.false(zip(args..), 'Expected');
|
||||
//t.throws(zip(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user