Skip to content

Commit

Permalink
Fixed the 0 case
Browse files Browse the repository at this point in the history
  • Loading branch information
Razican committed Oct 2, 2022
1 parent 3471f54 commit c80f3ac
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion boa_tester/src/results.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,13 @@ pub(crate) fn compare_results(base: &Path, new: &Path, markdown: bool) {
format!(
"{}{}{}{}",
if diff == 0 { "" } else { "**" },
if diff.is_positive() { "+" } else { "-" },
if diff.is_positive() {
"+"
} else if diff.is_negative() {
"-"
} else {
""
},
pretty_int(diff),
if diff == 0 { "" } else { "**" }
)
Expand Down

0 comments on commit c80f3ac

Please sign in to comment.