add 2 tests for union & without
This commit is contained in:
@ -5,6 +5,7 @@ test('Testing union', (t) => {
|
|||||||
//For more information on all the methods supported by tape
|
//For more information on all the methods supported by tape
|
||||||
//Please go to https://github.com/substack/tape
|
//Please go to https://github.com/substack/tape
|
||||||
t.true(typeof union === 'function', 'union is a Function');
|
t.true(typeof union === 'function', 'union is a Function');
|
||||||
|
t.deepEqual(union([1, 2, 3], [4, 3, 2]), [1, 2, 3, 4], "Returns every element that exists in any of the two arrays once");
|
||||||
//t.deepEqual(union(args..), 'Expected');
|
//t.deepEqual(union(args..), 'Expected');
|
||||||
//t.equal(union(args..), 'Expected');
|
//t.equal(union(args..), 'Expected');
|
||||||
//t.false(union(args..), 'Expected');
|
//t.false(union(args..), 'Expected');
|
||||||
|
|||||||
@ -5,6 +5,7 @@ test('Testing without', (t) => {
|
|||||||
//For more information on all the methods supported by tape
|
//For more information on all the methods supported by tape
|
||||||
//Please go to https://github.com/substack/tape
|
//Please go to https://github.com/substack/tape
|
||||||
t.true(typeof without === 'function', 'without is a Function');
|
t.true(typeof without === 'function', 'without is a Function');
|
||||||
|
t.deepEqual(without([2, 1, 2, 3], 1, 2), [3], "Filters out the elements of an array, that have one of the specified values.");
|
||||||
//t.deepEqual(without(args..), 'Expected');
|
//t.deepEqual(without(args..), 'Expected');
|
||||||
//t.equal(without(args..), 'Expected');
|
//t.equal(without(args..), 'Expected');
|
||||||
//t.false(without(args..), 'Expected');
|
//t.false(without(args..), 'Expected');
|
||||||
|
|||||||
Reference in New Issue
Block a user