Additional tests

This commit is contained in:
Angelos Chalaris
2018-11-10 13:04:37 +02:00
parent 7e22b3fae9
commit 39ff17ae2a
12 changed files with 58 additions and 1 deletions

View File

@ -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);
});