From 7702f8071bc31e2d024c18ab10b60a65a8548d58 Mon Sep 17 00:00:00 2001 From: BKinahan Date: Tue, 19 Apr 2016 10:52:48 +0000 Subject: [PATCH] Clarify test text for random numbers in a range --- .../basic-javascript.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index c8c51b9d0a1..2d4007353b3 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -5101,8 +5101,8 @@ "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 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(calcMin === 5, 'message: The lowest random number that can be generated by randomRange should be equal to your minimum number, myMin.');", + "assert(calcMax === 15, 'message: The highest random number that can be generated by randomRange should be 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 both myMax and myMin, and return a random number in your range.');" ],