Module lib::assert_command::assert_command_stdout_eq
source · Expand description
Assert a command stdout string is equal to another.
Pseudocode:
(command1 ⇒ stdout ⇒ string) = (command2 ⇒ stdout ⇒ string)
§Example
use std::process::Command;
let mut a = Command::new("bin/printf-stdout");
a.args(["%s", "hello"]);
let mut b = Command::new("bin/printf-stdout");
b.args(["%s%s%s%s%s", "h", "e", "l", "l", "o"]);
assert_command_stdout_eq!(a, b);