Fix vet and lint complaints

This commit is contained in:
Jakob Borg
2015-09-22 20:34:24 +02:00
parent a4673f3007
commit 7fdfa81fb8
6 changed files with 51 additions and 49 deletions

View File

@@ -123,12 +123,12 @@ func TestMerge(t *testing.T) {
func TestCounterValue(t *testing.T) {
v0 := Vector{Counter{42, 1}, Counter{64, 5}}
if v0.Counter(42) != 1 {
t.Error("Counter error, %d != %d", v0.Counter(42), 1)
t.Errorf("Counter error, %d != %d", v0.Counter(42), 1)
}
if v0.Counter(64) != 5 {
t.Error("Counter error, %d != %d", v0.Counter(64), 5)
t.Errorf("Counter error, %d != %d", v0.Counter(64), 5)
}
if v0.Counter(72) != 0 {
t.Error("Counter error, %d != %d", v0.Counter(72), 0)
t.Errorf("Counter error, %d != %d", v0.Counter(72), 0)
}
}