mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 08:16:50 +08:00
Update AverageMedian.js and AverageMedian.test.js
This commit is contained in:
@ -16,6 +16,6 @@ test('should return the median of an array of numbers:', () => {
|
||||
})
|
||||
|
||||
test('should return the median of an array of numbers:', () => {
|
||||
const medianValue = averageMedian([1,2,3,4,6,8])
|
||||
const medianValue = averageMedian([1, 2, 3, 4, 6, 8])
|
||||
expect(medianValue).toBe(3.5)
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user