mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-04 07:29:47 +08:00
9 lines
328 B
JavaScript
9 lines
328 B
JavaScript
import { kadaneAlgo } from '../KadaneAlgo'
|
|
test('it is being checked that 15 is the answer to the corresponding array input', () => {
|
|
expect(kadaneAlgo([1, 2, 3, 4, 5])).toBe(15)
|
|
})
|
|
|
|
test('it is being checked that 5 is the answer to the corresponding array input', () => {
|
|
expect(kadaneAlgo([-1, -2, -3, -4, 5])).toBe(5)
|
|
})
|