mirror of
https://github.com/Jguer/yay.git
synced 2024-11-07 01:27:21 +01:00
align test numbers, also color expected output (#1815)
This commit is contained in:
parent
647d160182
commit
1f49b7e11c
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user