Ad
  • Custom User Avatar

    Not true. Tested the control function against this test:

    assertEquals("abc", Kata.high("abc bbb aad"));
    

    And the result is fine.

    You're doing something wrong in your code:

    wg u wr
    {wg=6, u=21, wr=17}
    

    Those scores are wrong.

  • Custom User Avatar

    In Java the random test is failing because it expects the next to last highest scoring word.