From b6d7cc1d86090a57ca6f7cece9773fe4ca29265c Mon Sep 17 00:00:00 2001 From: Jools Date: Wed, 22 Mar 2017 06:46:15 +0100 Subject: [PATCH] add test case to Basic Algorithm Scripting: Confirm the Ending (#14000) Current checks do not cover use cases where target string is found elsewhere in the original string. closes #13944 --- .../basic-algorithm-scripting.json | 1 + 1 file changed, 1 insertion(+) diff --git a/challenges/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting.json b/challenges/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting.json index 07a09f7efc..d52a4b8507 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting.json +++ b/challenges/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting.json @@ -375,6 +375,7 @@ ], "tests": [ "assert(confirmEnding(\"Bastian\", \"n\") === true, 'message: confirmEnding(\"Bastian\", \"n\") should return true.');", + "assert(confirmEnding(\"Congratulation\", \"on\") === true, 'message: confirmEnding(\"Congratulation\", \"on\") should return true.');", "assert(confirmEnding(\"Connor\", \"n\") === false, 'message: confirmEnding(\"Connor\", \"n\") should return false.');", "assert(confirmEnding(\"Walking on water and developing software from a specification are easy if both are frozen\", \"specification\") === false, 'message: confirmEnding(\"Walking on water and developing software from a specification are easy if both are frozen\", \"specification\") should return false.');", "assert(confirmEnding(\"He has to give me a new name\", \"name\") === true, 'message: confirmEnding(\"He has to give me a new name\", \"name\") should return true.');",