Function expectStdOutEqual [src]
Adds a check for exact stdout match as well as a check for exit code 0, if
there is not already an expected termination check.
Prototype
pub fn expectStdOutEqual(run: *Run, bytes: []const u8) void
Parameters
run: *Run
bytes: []const u8
Source
pub fn expectStdOutEqual(run: *Run, bytes: []const u8) void {
const new_check: StdIo.Check = .{ .expect_stdout_exact = run.step.owner.dupe(bytes) };
run.addCheck(new_check);
if (!run.hasTermCheck()) {
run.expectExitCode(0);
}
}