title: How can I test that the output file of a function didn't change?
body: <p>I have a big legacy code that I'm trying to refactor. This code produces a long and complex .txt file.
  I want a framework/library/method so that I can automate my current workflow which is to save the .txt file produced initially and to compare the new .txt produced by my changes.</p>