just/tests/assert_stdout.rs

7 lines
167 B
Rust

use super::*;
pub(crate) fn assert_stdout(output: &Output, stdout: &str) {
assert_success(output);
assert_eq!(String::from_utf8_lossy(&output.stdout), stdout);
}