add 2 tests for union & without

This commit is contained in:
Stefan Feješ
2018-01-10 12:07:03 +01:00
parent 09fe99d66d
commit b5be6b42f3
2 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@ test('Testing union', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
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.equal(union(args..), 'Expected');
//t.false(union(args..), 'Expected');

View File

@ -5,6 +5,7 @@ test('Testing without', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
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.equal(without(args..), 'Expected');
//t.false(without(args..), 'Expected');