changes made

This commit is contained in:
Abhijeet Tiwari
2021-10-06 15:02:37 +05:30
parent c0fa1401c8
commit 5a59d1efc0
2 changed files with 4 additions and 13 deletions

View File

@ -1,8 +1,8 @@
const fc = require('../kadaneAlgo')
test('test1', () => {
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)
})
test('test2', () => {
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)
})