class new in Git master
#include <Corrade/TestSuite/Compare/String.h>
StringNotContains Pseudo-type for verifying that a string does not contain given substring.
Prints both strings if the actual string does contain the expected substring. Example usage is below, see Comparing with pseudo-types for more information.
Containers::StringView a = …; CORRADE_COMPARE_AS(a, "hell", TestSuite::Compare::StringNotContains);
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.