Skip to content

Commit

Permalink
Show trailing "---" after stdout so the entire output is easier to see
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Dec 11, 2024
1 parent 9693722 commit d5f8e2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tooling/nargo_cli/src/cli/test_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,9 @@ impl<'a> TestRunner<'a> {

if self.args.show_output && !test_result.output.is_empty() {
writeln!(writer, "--- {} stdout ---", test_result.name)?;
write!(writer, "{}", test_result.output)
write!(writer, "{}", test_result.output)?;
let name_len = test_result.name.len();
writeln!(writer, "{}", "-".repeat(name_len + "--- stdout ---".len()))
} else {
Ok(())
}
Expand Down

0 comments on commit d5f8e2c

Please sign in to comment.