Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ielashi committed Jan 26, 2024
1 parent 618d93f commit 59ba7bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions canbench-bin/tests/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ use tempdir::TempDir;
#[macro_export]
macro_rules! assert_err {
($output:expr, $err_str:expr) => {
assert_eq!($output.status.code(), Some(1));
assert_eq!($output.status.code(), Some(1), "output: {:?}", $output);
pretty_assertions::assert_eq!(&String::from_utf8($output.stderr).unwrap(), $err_str);
};
}

#[macro_export]
macro_rules! assert_success {
($output:expr, $out_str:expr) => {
assert_eq!($output.status.code(), Some(0));
assert_eq!($output.status.code(), Some(0), "output: {:?}", $output);
pretty_assertions::assert_eq!(&String::from_utf8($output.stdout).unwrap(), $out_str);
};
}
Expand Down

0 comments on commit 59ba7bd

Please sign in to comment.