Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
`${input} is${expected ? "" : " not"} valid`,
should use
JSON.stringify
:`${ JSON.stringify(input) } is${ expected ? "" : " not" } valid`,
That would correctly show the input as an array. You're missing brackets and nesting now.
Testing should use
assert.strictEqual
.Random tests are vulnerable to input modification.
https://www.codewars.com/kata/reviews/60b169874f4426000152810f/groups/60bccc7c65784300016de60a
Random tests are not effective.
Duplicate of all the calculator katas, and the addition of functions, which require 2 lines of code to handle, doesn't really change anything.