The getExpectedMap method is used everywhere in your huge project.
At some point, the testers discovered that the getExpectedMap method throws a NullPointerException.
The expected behavior is described in the main method's comments.
Bug fix
- 9
Locked
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
Justin Smith
7 February, 12:29
Bad task. The "official" solution produces an output different from what it says it wants.
0
John Squirrels Website Admin at CodeGym
9 February, 08:40
Could you be more specific, please?
0
Justin Smith
9 February, 14:09
The commented output in the solution specifies:
However, if you copy/paste the solution, it will actually output the keys as:
and it will output Values as:
It will pass validation while generating this output, at least. But I was quite stuck for a while trying to figure out why my outputs were in reverse order, and eventually gave up and pasted in the solution, only to find that it was doing exactly the same thing as my own solution. 0