Skip to content

Commit 541072e

Browse files
committed
Updated tests for lis.
1 parent b89a82f commit 541072e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lis/test.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ describe('Longest Increasing Subsequence Tests', () => {
88
test('lis function is defined', () => {
99
expect(typeof lis).toEqual('function');
1010
});
11-
it('Calculate correct lis value for [5,7,4,-3,9,1,10,4,5,8,9,3] === 6', () => {
11+
test('Calculate correct lis value for [5,7,4,-3,9,1,10,4,5,8,9,3] === 6', () => {
1212
expect(lis([5,7,4,-3,9,1,10,4,5,8,9,3])).toEqual(6);
1313
});
14+
test('Calculate correct lis value for [1,10,-3,4,15,2,3,5,11,12,13] === 7', () => {
15+
expect(lis([1,10,-3,4,15,2,3,5,11,12,13])).toEqual(7);
16+
});
17+
test('Calculate correct lis value for [4,5,6,2,1,0,-5,3,10,20,19,11] === 5', () => {
18+
expect(lis([4,5,6,2,1,0,-5,3,10,20,19,11])).toEqual(5);
19+
});
1420
});

0 commit comments

Comments
 (0)