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.
Yes, please use
Test.assertDeepEquals
to compare objects and arrays.expect(your_func(array1, array2)).to.deep.equal(array2)
The problem is if you compare [1] === [1] it will result as false. So you have to tell the test suite to compare individual elements of the array, not array itself. Becasue var a = [1] and var b = [1] are two different arrays (they have different reference to the memory).
Same issue, what would cause that issue in the test code?
Check your Test code.
Perhaps problem there
I go on to specify you may recieve input which is not a string and to handle that correctly.
The description also starts off by telling us to implement a function "which takes a string as input." Probably a good idea to reword this.
I have the same issue (but for what it's worth when I clicked submit my solution was accepted).
Not sure - if the test case validation is working fine
Expected: [1,3], instead got: [1,3]
Appreciate any help
Thanks Matt
In the description it says you are only expecting strings if you receive anything different return 0 vowels and 0 constants :)
getCount(['To Kata or not to Kata']) - Why this expects 0 Vowels - when it has 8 of em?