Background: https://www.freecodecamp.org/challenges/validate-us-telephone-numbers - I wrote, but caught at least, some bad code which was accepted as correct because there are no tests, expecting to return true which include the digit “0”.
On line 17 I have used parseInt within my “if” evaluation which works for all the integers except 0 but the code passes. I have never been but I assume Americans use zero in telephone numbers. don’t even ask about the second expression in there.
So the screen shot also shows a telephone number including 0 which should pass but results in false.
So the question: Is there anything else to do when adding a new test to a challenge, aside from what goes into the relevant property within the relevant “seed/…/…/***.json” file from which the challenges are built?
Hopefully the case is that no other file require change and if so then I have already (forked & branched &) added a new test using all digits:
“assert(telephoneCheck(“012 345 6789”) === true, ‘message:
telephoneCheck(“012 345 6789”) should return true.’);”,
So if there is nothing else and I can make a PR without any local testing then I will. Only because I have limited bandwidth and can’t clone/build the project locally.