Skip to content

Commit

Permalink
align test numbers, also color expected output (#1815)
Browse files Browse the repository at this point in the history
  • Loading branch information
Optiligence authored Oct 11, 2022
1 parent 647d160 commit 1f49b7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/upgrade/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ func TestGetVersionDiff(t *testing.T) {
o, n := GetVersionDiff(pair.Old, pair.New)

if o != out[i].Old || n != out[i].New {
t.Errorf("Test %d failed for update: expected (%s => %s) got (%s => %s) %d %d %d %d",
i+1, in[i].Old, in[i].New, o, n, len(in[i].Old), len(in[i].New), len(o), len(n))
t.Errorf("Test %-2d failed for update: expected (%s => %s) got (%s => %s) %d %d %d %d",
i+1, out[i].Old, out[i].New, o, n, len(out[i].Old), len(out[i].New), len(o), len(n))
}
}
}

0 comments on commit 1f49b7e

Please sign in to comment.