Skip to content

Commit

Permalink
Test error formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
WGUNDERWOOD committed Oct 16, 2024
1 parent 2311d12 commit 43fff54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {}
Expand Down

0 comments on commit 43fff54

Please sign in to comment.