Function cargo_test_support::compare::match_exact
source · pub fn match_exact(
expected: &str,
actual: &str,
description: &str,
other_output: &str,
cwd: Option<&Path>
) -> Result<()>Expand description
Compares one string against another, checking that they both match.
See Patterns for more information on pattern matching.
descriptionexplains where the output is from (usually “stdout” or “stderr”).other_outputis other output to display in the error (usually stdout or stderr).