Files
JavaScript/Sorts/test/BinaryInsertionSort.test.js
2022-10-16 10:47:18 +02:00

9 lines
303 B
JavaScript

import { binaryInsertionSort } from '../BinaryInsertionSort'
describe('BinaryInsertionSort', () => {
it('should sort arrays correctly', () => {
expect(binaryInsertionSort([5, 4, 3, 2, 1])).toEqual([1, 2, 3, 4, 5])
expect(binaryInsertionSort([7, 9, 4, 3, 5])).toEqual([3, 4, 5, 7, 9])
})
})