Skip to content

Commit 292c6ed

Browse files
Update test for calculateMean function to use different input values for mean calculation
1 parent 9d10901 commit 292c6ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Sprint-1/implement/mean.test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe("calculateMean", () => {
4242
// Then it should return the correct mean
4343

4444
it("given an array containing negative or decimal numbers, returns the correct mean", () => {
45-
expect(calculateMean([10, -2, 6])).toEqual(4);
45+
expect(calculateMean([6, -2, 8])).toEqual(4); // 6 + (-2) + 8 = 12 / 3 = 4
4646
expect(calculateMean([1.5, 2.5])).toEqual(2);
4747
});
4848

0 commit comments

Comments
 (0)