• Contradictory tests or I do not understand task

Question related to mission Goes Right After

 

In a given word you need to check if one symbol goes right after another.
goes_after('panorama', 'a', 'n') == True
but
goes_after("almaz","m","a") == False