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.
I've tried modifying the description but the kata editor is really buggy, server keeps timing out. So tomorrow I'll add a sentence like this
In other words the function should return the same array back, with the inelligable people removed, and the elligable objects modified.
Thx for your time.What exactly did you have in mind?
I believe you need to use a try, catch, finally statement in order to pass the tests.
Edit: nope. Try/catch doesn't seem to work. Any errors I've thrown show up as errors and do not pass the tests.
Same problem for me
This is happening to me as well, and is very annoying.
I do not know how to help you. The only thing I can think is that you try to use
console.log()
instead of throwing exceptions.Yeah it would appear that throwing an error within your equals() method will mess up the testing framework.
I just figured out the problem. The equals() method should return false if the vectors are not conformable. It should not throw an error!
This comment is hidden because it contains spoiler information about the solution
I'm having the same (maybe?) issue, the output frame is red while all the tests say they passed (including the Expected Errors).
There is no indication which test is failing in the output at all.
edit: was going to paste the solution here but I dont know how to add the syntax highlighting on here :)
This comment is hidden because it contains spoiler information about the solution
That's... unusual? Can I see your code?
Haha, if it works it works! The thing with sufficiently complex problems like these is that there's tons of approaches, ugly or pretty, so whatever works is good!
Your solution looks fine! If you want to see a real ugly solution, take a look at mine xD