tried to fix tests

This commit is contained in:
Abhijeet Tiwari
2021-10-06 15:34:08 +05:30
parent 5a59d1efc0
commit ed49e122a7
2 changed files with 3 additions and 4 deletions

View File

@ -1,8 +1,8 @@
import { kadaneAlgo } from '../KadaneAlgo'
test('it is being checked that 15 is the answer to the corresponding array input', () => {
expect(fc.kadaneAlgo([1, 2, 3, 4, 5])).toBe(15)
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(fc.kadaneAlgo([-1, -2, -3, -4, 5])).toBe(5)
expect(kadaneAlgo([-1, -2, -3, -4, 5])).toBe(5)
})