class new in Git master
#include <Corrade/TestSuite/Compare/String.h>
StringHasPrefix Pseudo-type for verifying that a string has given prefix.
Prints both strings if the actual string doesn't have the expected prefix. Example usage is below, see Comparing with pseudo-types for more information.
Containers::StringView a = …; CORRADE_COMPARE_AS(a, "hello", TestSuite::Compare::StringHasPrefix);
If the --verbose
command-line option is specified, passed comparisons where the strings are different will print an INFO
message with the full string content for detailed inspection.