Corrade::TestSuite::Compare::FileToString class

Pseudo-type for comparing file contents to string.

Prints the length of both files (if they are different) and prints the value and position of the first different character in both files. Filename is expected to be in UTF-8. Example usage:

CORRADE_COMPARE_AS("actual.txt", "expected file contents",
    TestSuite::Compare::FileToString);

See Comparing with pseudo-types for more information.

Unlike File and StringToFile, this comparator doesn't support the --save-diagnostic option, due to the fact that the comparison is done against a string and so producing a file isn't that helpful as in the other two variants.