We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4200ce commit a55bc61Copy full SHA for a55bc61
Sprint-1/implement/sum.test.js
@@ -32,7 +32,7 @@ test("should return correct sum for negative and positive numbers", () =>
32
// Then it should return the correct total sum
33
34
// use toBeCloseTo to account for floating point
35
-test("should sum floats", () => expect(sum([0.1 + 0.2])).toBeCloseTo(0.3));
+test("should sum floats", () => expect(sum([0.1, 0.2])).toBeCloseTo(0.3));
36
37
// Given an array containing non-number values
38
// When passed to the sum function
0 commit comments