From 43fff54e31e558b41896341197d9016e60963a19 Mon Sep 17 00:00:00 2001 From: William G Underwood <42812654+WGUNDERWOOD@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:41:08 +0100 Subject: [PATCH] Test error formatting --- src/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests.rs b/src/tests.rs index c4c9a18..6b44ed4 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -25,12 +25,12 @@ fn test_file(source_file: &str, target_file: &str) -> bool { match change.tag() { ChangeTag::Delete => print!( "{} {}", - format!("@ {}:", change.old_index().unwrap()).blue().bold(), + format!("@ {:>3}:", change.old_index().unwrap()).blue().bold(), format!("- {change}").red().bold(), ), ChangeTag::Insert => print!( "{} {}", - format!("@ {}:", change.new_index().unwrap()).blue().bold(), + format!("@ {:>3}:", change.new_index().unwrap()).blue().bold(), format!("+ {change}").green().bold(), ), ChangeTag::Equal => {}