New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wherefore art thou could use more test cases. #14057
Comments
Good catch. Your code doesn't pass the beta version though: https://beta.freecodecamp.com/en/challenges/intermediate-algorithm-scripting/wherefore-art-thou I'll investigate to see if we can make a PR against master branch. |
@skylarjhdownes sounds like a valid addition to the tests. But we'll also need to add that additional requirement into the instructions. @JoolsMcFly if changes are made, they can just go to cc/ @freeCodeCamp/moderators second thoughts? If the input for |
I'm on board with that 👍 |
I can help with this issue. I will make a pull request shortly. |
Challenge Wherefore art thou seems lacking in test cases for invalid input. I would think that
whatIsInAName([{ "a": 1, "b": 2, "c": 3}], { "a": 1, "b": 9999, "c": 3})
ought to return an empty array, for instance. There is currently no check for this, so my code which returns
{ "a": 1, "b": 2, "c": 3}
passes all test cases.
The text was updated successfully, but these errors were encountered: