Expand description

Assert a command (built with program and args) stdout string contains a given containee.

Pseudocode:
(program1 + args1 ⇒ command ⇒ stdout ⇒ string) contains (expr into string)

This uses std::String method contains.

  • The containee can be a &str, char, a slice of chars, or a function or closure that determines if a character contains.

§Example

use assertables::*;
let program = "bin/printf-stdout";
let args = ["%s", "alfa"];
let containee = "lf";
assert_program_args_stdout_contains!(&program, &args, &containee);

§Module macros