Skip to content

Commit

Permalink
add test case to Basic Algorithm Scripting: Confirm the Ending (freeC…
Browse files Browse the repository at this point in the history
…odeCamp#14000)

Current checks do not cover use cases where target string is found elsewhere in the original string.
closes freeCodeCamp#13944
  • Loading branch information
JoolsMcFly authored and QuincyLarson committed Mar 22, 2017
1 parent 9eb80b6 commit f017c57
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@
],
"tests": [
"assert(confirmEnding(\"Bastian\", \"n\") === true, 'message: <code>confirmEnding(\"Bastian\", \"n\")</code> should return true.');",
"assert(confirmEnding(\"Congratulation\", \"on\") === true, 'message: <code>confirmEnding(\"Congratulation\", \"on\")</code> should return true.');",
"assert(confirmEnding(\"Connor\", \"n\") === false, 'message: <code>confirmEnding(\"Connor\", \"n\")</code> should return false.');",
"assert(confirmEnding(\"Walking on water and developing software from a specification are easy if both are frozen\", \"specification\") === false, 'message: <code>confirmEnding(\"Walking on water and developing software from a specification are easy if both are frozen\"&#44; \"specification\"&#41;</code> should return false.');",
"assert(confirmEnding(\"He has to give me a new name\", \"name\") === true, 'message: <code>confirmEnding(\"He has to give me a new name\", \"name\")</code> should return true.');",
Expand Down

0 comments on commit f017c57

Please sign in to comment.