macro_rules! assert_program_args_stderr_gt { ($a_program:expr, $a_args:expr, $b_program:expr, $b_args:expr $(,)?) => { ... }; ($a_program:expr, $a_args:expr, $b_program:expr, $($message:tt)+) => { ... }; }
Expand description
Assert a command (built with program and args) stderr string is greater than to another.
-
If true, return
(). -
Otherwise, call
panic!with a message and the values of the expressions with their debug representations.
§Examples
let a_program = "bin/printf-stderr";
let a_args = ["%s", "hello"];
let b_program = "bin/printf-stderr";
let b_args = ["%s", "hallo"];
assert_program_args_stderr_gt!(&a_program, &a_args, &b_program, &b_args);
let a_program = "bin/printf-stderr";
let a_args = ["%s", "hello"];
let b_program = "bin/printf-stderr";
let b_args = ["%s", "hullo"];
assert_program_args_stderr_gt!(&a_program, &a_args, &b_program, &b_args);
// assertion failed: `assert_program_args_stderr_gt!(a_program, a_args, b_program, b_args)`
// a_program label: `&a_program`,
// a_program debug: `\"bin/printf-stderr\"`,
// a_args label: `&a_args`,
// a_args debug: `[\"%s\", \"hello\"]`,
// b_program label: `&b_program`,
// b_program debug: `\"bin/printf-stderr\"`,
// b_args label: `&b_args`,
// b_args debug: `[\"%s\", \"hullo\"]`,
// a: `\"hello\"`,
// b: `\"hullo\"`/// # Module macros