add 2 tests, maxN & median

This commit is contained in:
Stefan Feješ
2018-01-10 14:36:26 +01:00
parent e9d89a7e4e
commit 3ce4ac5912
3 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,8 @@ test('Testing maxN', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof maxN === 'function', 'maxN is a Function');
t.deepEqual(maxN([1, 2, 3]), [3], "Returns the n maximum elements from the provided array");
t.deepEqual(maxN([1, 2, 3], 2), [3, 2], "Returns the n maximum elements from the provided array");
//t.deepEqual(maxN(args..), 'Expected');
//t.equal(maxN(args..), 'Expected');
//t.false(maxN(args..), 'Expected');