Correct number of args to Errorf

This commit is contained in:
Bjørn Erik Pedersen 2015-10-12 21:34:15 +02:00
parent 72f14a8202
commit 17fb752279

View file

@ -338,7 +338,7 @@ func TestDictionary(t *testing.T) {
r, e := Dictionary(this.v1...)
if (this.expecterr && e == nil) || (!this.expecterr && e != nil) {
t.Errorf("[%d] got an unexpected error", i, e, this.expecterr)
t.Errorf("[%d] got an unexpected error: %s", i, e)
} else if !this.expecterr {
if !reflect.DeepEqual(r, this.expectedValue) {
t.Errorf("[%d] got %v but expected %v", i, r, this.expectedValue)