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 f786fca commit fb96503Copy full SHA for fb96503
1 file changed
Sprint-1/implement/max.test.js
@@ -54,6 +54,8 @@ test("given an array with decimal numbers, return the largest decimal number", (
54
// Then it should return the max and ignore non-numeric values
55
test("given an array with non-numeric values, returns the max and ignores non-numerics", () => {
56
expect(findMax(["hey", 10, "hi", 60, 10])).toEqual(60);
57
+ // "300" looks numeric but is a string, so it should be ignored
58
+ expect(findMax([10, "300", 20])).toEqual(20);
59
});
60
61
// Given an array with only non-number values
0 commit comments