Anyone else having problems with the test on this level?
Here’s my current project code:
I tried a few different ways to solve it, including guarding against not finding a match and, in that case, not adding anything to the result String.
Students are also having problems with the test on 8A.
The expected test result seems to match the output of the test of my code, but the error seems to be in the class they use for testing the level (ChatBotTest.Java).
On a second pass through, it looks like the problem is that there’s duplicate words with different parts of speech. The test expects the last entry to be returned when mine returns the first entry.