add 2 tests, filterNonUnique & flatten
This commit is contained in:
@ -5,6 +5,7 @@ test('Testing filterNonUnique', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof filterNonUnique === 'function', 'filterNonUnique is a Function');
|
||||
t.deepEqual(filterNonUnique([1, 2, 2, 3, 4, 4, 5]), [1,3,5], "Filters out the non-unique values in an array");
|
||||
//t.deepEqual(filterNonUnique(args..), 'Expected');
|
||||
//t.equal(filterNonUnique(args..), 'Expected');
|
||||
//t.false(filterNonUnique(args..), 'Expected');
|
||||
|
||||
@ -5,6 +5,7 @@ test('Testing flatten', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof flatten === 'function', 'flatten is a Function');
|
||||
t.deepEqual(flatten([1, [2], 3, 4]), [1, 2, 3, 4], "Flattens an array");
|
||||
//t.deepEqual(flatten(args..), 'Expected');
|
||||
//t.equal(flatten(args..), 'Expected');
|
||||
//t.false(flatten(args..), 'Expected');
|
||||
|
||||
Reference in New Issue
Block a user