Ad
  • Custom User Avatar

    Doh! my bad(( thanks!
    proving something, based on the fact that he himself did not understand the condition...)) s..t happens

  • Custom User Avatar

    Because there is no problem with the tests, your current code has a little problem, read this part again, fix your code:

    If <= 5, return 'Get Out Now!'. Else return 'Nice Work Champ!'.

  • Custom User Avatar

    I just wanted to try to find a catch, what if I also in this room and have 0 points. Dont look on this.

    still you do not want to understand me. of your choice

  • Custom User Avatar

    You had Object.keys(meet).length + 1 in your code.

  • Custom User Avatar

    twelve?) I wrote 11 (and i pass 97 tests out of 100)
    sensibility does not matter, there are only whole numbers in test. It means that in any case, we will sometime get 55 in total.
    The test error is that when the sum of the numbers is 55 (given that we doubled the boss's points), the test expects a negative result, which it will never get

    solution: replace condition from happiness >= 5 to happiness > 5 for example

    p.s. The warning text also has some problems.

    anyway, I'll try again, maybe im wrong

  • Custom User Avatar

    You're mutating the input too.

  • Custom User Avatar

    Rdnxla: you code is wrong, not a kata issue. Why are you dividing by twelve?

    maxikrbr: js tests aren't sensible to input mutation anymore.

  • Custom User Avatar

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

  • Custom User Avatar

    Please, post you code for further assistance. Consider that js tests are sensible to input mutation.

  • Custom User Avatar

    JS. Random test have a mistake! All times when we get summ === 55 - it call error. Because count of members === 11. 55 / 11 = 5 but test expects "go away!" and expect smth of 4.75
    I think you understand.

  • Custom User Avatar

    Hellfingers: no, your code is wrong. You're only checking if the boss's happiness is <= 5 or not, and that's not what you should be doing at all.

  • Custom User Avatar

    The java problem still has the same error

  • Custom User Avatar

    Thaaaaaaaaaaaaanks dude! You're awesome!

  • Custom User Avatar

    Well, yes, but i do not understand why that particular test failed. But do not fret, it must have been something wrong on my side. Sorry about the long thread.

  • Custom User Avatar

    Fixed. Also fixed actual and expected were flipped in random tests and updated to Node 14.

  • Loading more items...