I'm probably missing something, but this looks odd. The expected result should list lines that were unchanged, no? We need to know about unchanged lines/diffs so we can show them to the user (and save them).