add basic 2 test for zip snippet

This commit is contained in:
King
2018-01-10 16:23:21 -05:00
parent 14c8579949
commit 70347d62c1

View File

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