Your question is Validate Expected Error Messages. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Given a list of test result strings, write a function count_message_mismatches(results) that returns the number of failed test cases where the expected error message does not exactly match the actual error message. Each string is formatted as STATUS|expected=<text>|actual=<text>, where STATUS is either PASS or FAIL. Only FAIL entries should be checked; PASS entries are ignored.
|-separated parts in the required format|def count_message_mismatches(results):