Ad
  • Custom User Avatar

    I see the problem now. Thank you.

  • Custom User Avatar

    Well, that's the problem this kata is posing to you. "If the problem were different, my solution would be right, because I solved a different problem" isn't really an issue with the kata...

    Expected [a] but got [b] means your code returned [b], but the correct answer is [a]. "First A Of In" is the correct result if "a", "of" and "in" aren't considered minor words.

  • Custom User Avatar

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

  • Custom User Avatar

    And how your solution returning a wrong value is an issue?

  • Custom User Avatar

    There seems to be a problem with one of the tests, unless others solved it and I misunderstood.
    My solution passes the initial 3 tests but then returns a failure on submission with the message,
    "Gave title="First a of in", minorWords="an often into". Expected "First A Of In" but got "First a of in"."
    I had to hard code a solution because that test case was in my opinion extremely odd.