Additional tests
This commit is contained in:
@ -10,3 +10,6 @@ test('Returns the lowest index at which value should be inserted into array in o
|
||||
test('Returns the lowest index at which value should be inserted into array in order to maintain its sort order.', () => {
|
||||
expect(sortedIndex([30, 50], 40)).toBe(1);
|
||||
});
|
||||
test('Returns the lowest index at which value should be inserted into array in order to maintain its sort order.', () => {
|
||||
expect(sortedIndex([30, 50], 60)).toBe(2);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user