Skip to content

Commit fac10d0

Browse files
committed
test: rename test arrays for consistency in LocalMaximomPoint tests
1 parent 68c3592 commit fac10d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Data-Structures/Array/test/LocalMaximomPoint.test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ describe('LocalMaximumPoint tests', () => {
2828
})
2929

3030
it('test with positive and negative numbers', () => {
31-
const Array4 = [-4, -3, -2, -1, -5, 4, -1]
32-
expect(LocalMaximomPoint(Array4)).toEqual(3)
31+
const Array2 = [-4, -3, -2, -1, -5, 4, -1]
32+
expect(LocalMaximomPoint(Array2)).toEqual(3)
3333
})
3434

3535
it('test with floating-point numbers', () => {
36-
const Array5 = [1.5, 3.5, 2.5, 0.5, -1.5, -3.5, -2.5]
37-
expect(LocalMaximomPoint(Array5)).toEqual(1)
36+
const Array2 = [1.5, 3.5, 2.5, 0.5, -1.5, -3.5, -2.5]
37+
expect(LocalMaximomPoint(Array2)).toEqual(1)
3838
})
3939
})

0 commit comments

Comments
 (0)