Tests for dropWhile, dropRightWhile

This commit is contained in:
Angelos Chalaris
2018-02-04 16:47:40 +02:00
parent 58da5f3c02
commit af0e163ec2
3 changed files with 866 additions and 862 deletions

View File

@ -5,6 +5,7 @@ test('Testing dropRightWhile', (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 dropRightWhile === 'function', 'dropRightWhile is a Function'); t.true(typeof dropRightWhile === 'function', 'dropRightWhile is a Function');
t.deepEqual(dropRightWhile([1, 2, 3, 4], n => n < 3), [1, 2], 'Removes elements from the end of an array until the passed function returns true.');
//t.deepEqual(dropRightWhile(args..), 'Expected'); //t.deepEqual(dropRightWhile(args..), 'Expected');
//t.equal(dropRightWhile(args..), 'Expected'); //t.equal(dropRightWhile(args..), 'Expected');
//t.false(dropRightWhile(args..), 'Expected'); //t.false(dropRightWhile(args..), 'Expected');

View File

@ -5,6 +5,7 @@ test('Testing dropWhile', (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 dropWhile === 'function', 'dropWhile is a Function'); t.true(typeof dropWhile === 'function', 'dropWhile is a Function');
t.deepEqual(dropWhile([1, 2, 3, 4], n => n >= 3), [3,4], 'Removes elements in an array until the passed function returns true.');
//t.deepEqual(dropWhile(args..), 'Expected'); //t.deepEqual(dropWhile(args..), 'Expected');
//t.equal(dropWhile(args..), 'Expected'); //t.equal(dropWhile(args..), 'Expected');
//t.false(dropWhile(args..), 'Expected'); //t.false(dropWhile(args..), 'Expected');

File diff suppressed because it is too large Load Diff