Ad
  • Custom User Avatar

    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.

  • Custom User Avatar

    What exactly did you have in mind?

  • Default User Avatar

    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.

  • Default User Avatar

    Same problem for me

  • Default User Avatar

    This is happening to me as well, and is very annoying.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Yeah it would appear that throwing an error within your equals() method will mess up the testing framework.

  • Default User Avatar

    I just figured out the problem. The equals() method should return false if the vectors are not conformable. It should not throw an error!

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    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 :)

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    That's... unusual? Can I see your code?

  • Custom User Avatar

    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!

  • Custom User Avatar

    Your solution looks fine! If you want to see a real ugly solution, take a look at mine xD