From b2f17cf9b56ba9f7018afe907eeeb100bade2361 Mon Sep 17 00:00:00 2001 From: marissa27 Date: Sun, 11 Feb 2018 12:54:56 -0700 Subject: [PATCH] Update 04_medianSpec.js Adding in the 10 will ensure the user gets the array sorted numerically --- spec/04_medianSpec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/04_medianSpec.js b/spec/04_medianSpec.js index b69b7db..0154dec 100644 --- a/spec/04_medianSpec.js +++ b/spec/04_medianSpec.js @@ -10,6 +10,6 @@ describe("Median", function() { return expect(median([1, 3, 5, 6, 2, 9])).to.eql(4); }); return it("returns the median for an array containing an odd number of integers", function() { - return expect(median([1, 3, 5, 2, 9])).to.eql(3); + return expect(median([1, 3, 5, 2, 10])).to.eql(3); }); });