From 4b7ad8447b8abded35729b7acb22991b57d8e9dc Mon Sep 17 00:00:00 2001
From: dyneskye <65031106+dyneskye@users.noreply.github.com>
Date: Mon, 27 Jul 2020 15:43:59 +0100
Subject: [PATCH] fix(learn): Added test for edge case (#39323)
* fix(learn): Added test for edge case
* Test checks edge cases for incorrect spelling in middle characters.
* fix: removed 'pen' sageTest
* the 'pen' points out that it is not the end of the first word to be tested for, but the end of the string.
However, this is explained clearly in the 'mountain' test below just as well.
---
.../basic-algorithm-scripting/confirm-the-ending.english.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/confirm-the-ending.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/confirm-the-ending.english.md
index af5c65befc..741d474e6f 100644
--- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/confirm-the-ending.english.md
+++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/confirm-the-ending.english.md
@@ -35,8 +35,8 @@ tests:
testString: assert(confirmEnding("He has to give me a new name", "name") === true);
- text: confirmEnding("Open sesame", "same")
should return true.
testString: assert(confirmEnding("Open sesame", "same") === true);
- - text: confirmEnding("Open sesame", "pen")
should return false.
- testString: assert(confirmEnding("Open sesame", "pen") === false);
+ - text: confirmEnding("Open sesame", "sage")
should return false.
+ testString: assert(confirmEnding("Open sesame", "sage") === false);
- text: confirmEnding("Open sesame", "game")
should return false.
testString: assert(confirmEnding("Open sesame", "game") === false);
- text: confirmEnding("If you want to save our world, you must hurry. We dont know how much longer we can withstand the nothing", "mountain")
should return false.