diff --git a/seed/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json b/seed/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json index fedc2c7ed19..0244616b710 100644 --- a/seed/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json +++ b/seed/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json @@ -2621,10 +2621,11 @@ ], "tail": [], "solutions": [ - "function timesFive(num) {\n return num * 5;\n}" + "function timesFive(num) {\n return num * 5;\n}\ntimesFive(10);" ], "tests": [ "assert(typeof timesFive === 'function', 'message: timesFive should be a function');", + "assert(code.match(/timesFive\\(\\s*\\d+\\s*\\)/g), 'message: function timesFive should be called with a number');", "assert(timesFive(5) === 25, 'message: timesFive(5) should return 25');", "assert(timesFive(2) === 10, 'message: timesFive(2) should return 10');", "assert(timesFive(0) === 0, 'message: timesFive(0) should return 0');"