From 9b4bde55a3fc1c198810a1a47089e7360591e703 Mon Sep 17 00:00:00 2001 From: Karuppiah Date: Wed, 5 Oct 2016 10:50:13 +0530 Subject: [PATCH] Added an extra test to Smallest Common Multiple challenge to test if the camper has used arr.sort() without comparison function to sort the numbers, which is wrong. --- .../intermediate-bonfires.json | 1 + 1 file changed, 1 insertion(+) diff --git a/challenges/01-front-end-development-certification/intermediate-bonfires.json b/challenges/01-front-end-development-certification/intermediate-bonfires.json index 1768076c7a..02a91ad0ce 100644 --- a/challenges/01-front-end-development-certification/intermediate-bonfires.json +++ b/challenges/01-front-end-development-certification/intermediate-bonfires.json @@ -821,6 +821,7 @@ "assert.deepEqual(typeof smallestCommons([1, 5]), 'number', 'message: smallestCommons([1, 5]) should return a number.');", "assert.deepEqual(smallestCommons([1, 5]), 60, 'message: smallestCommons([1, 5]) should return 60.');", "assert.deepEqual(smallestCommons([5, 1]), 60, 'message: smallestCommons([5, 1]) should return 60.');", + "assert.deepEqual(smallestCommons([2, 10]), 2520, 'message: smallestCommons([2, 10]) should return 2520.');", "assert.deepEqual(smallestCommons([1, 13]), 360360, 'message: smallestCommons([1, 13]) should return 360360.');", "assert.deepEqual(smallestCommons([23, 18]), 6056820, 'message: smallestCommons([23, 18]) should return 6056820.');" ],