From 225f6fb2f70a7c0bbc58d7d24efbe52245a6f1dd Mon Sep 17 00:00:00 2001 From: Eric Leung Date: Thu, 14 Jan 2016 21:16:50 -0800 Subject: [PATCH] Fix inconsistent function naming --- .../basic-javascript.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json index a80b54501e..a3ab766538 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -4149,10 +4149,10 @@ "function randomRange(myMin, myMax) {\n return Math.floor(Math.random() * (myMax - myMin + 1)) + myMin;\n}" ], "tests": [ - "assert(calcMin === 5, 'message: The random number generated by myFunction should be greater than or equal to your minimum number, myMin.');", - "assert(calcMax === 15, 'message: The random number generated by myFunction should be less than or equal to your maximum number, myMax.');", - "assert(randomRange(0,1) % 1 === 0 , 'message: The random number generated by myFunction should be an integer, not a decimal.');", - "assert((function(){if(code.match(/myMax/g).length > 1 && code.match(/myMin/g).length > 2 && code.match(/Math.floor/g) && code.match(/Math.random/g)){return true;}else{return false;}})(), 'message: myFunction() should use use both myMax and myMin, and return a random number in your range.');" + "assert(calcMin === 5, 'message: The random number generated by randomRange should be greater than or equal to your minimum number, myMin.');", + "assert(calcMax === 15, 'message: The random number generated by randomRange should be less than or equal to your maximum number, myMax.');", + "assert(randomRange(0,1) % 1 === 0 , 'message: The random number generated by randomRange should be an integer, not a decimal.');", + "assert((function(){if(code.match(/myMax/g).length > 1 && code.match(/myMin/g).length > 2 && code.match(/Math.floor/g) && code.match(/Math.random/g)){return true;}else{return false;}})(), 'message: randomRange should use use both myMax and myMin, and return a random number in your range.');" ], "type": "waypoint", "challengeType": 1