Module lib::assert_command::assert_command_stdout_eq_expr
source · Expand description
Assert a command stdout string is equal to an expression.
Pseudocode:
(command ⇒ stdout ⇒ string) = (expr into string)
§Example
use std::process::Command;
let mut command = Command::new("bin/printf-stdout");
command.args(["%s", "hello"]);
let s = String::from("hello");
assert_command_stdout_eq_expr!(command, s);