More linting fun

This commit is contained in:
Asim
2016-04-06 18:03:27 +01:00
parent 2f50c74f41
commit bfe20d81d0
12 changed files with 33 additions and 38 deletions

View File

@@ -19,29 +19,29 @@ func TestErrors(t *testing.T) {
ne := New(e.Id, e.Detail, e.Code)
if e.Error() != ne.Error() {
t.Fatal("Expected %s got %s", e.Error(), ne.Error())
t.Fatalf("Expected %s got %s", e.Error(), ne.Error())
}
pe := Parse(ne.Error())
if pe == nil {
t.Fatal("Expected error got nil %v", pe)
t.Fatalf("Expected error got nil %v", pe)
}
if pe.Id != e.Id {
t.Fatal("Expected %s got %s", e.Id, pe.Id)
t.Fatalf("Expected %s got %s", e.Id, pe.Id)
}
if pe.Detail != e.Detail {
t.Fatal("Expected %s got %s", e.Detail, pe.Detail)
t.Fatalf("Expected %s got %s", e.Detail, pe.Detail)
}
if pe.Code != e.Code {
t.Fatal("Expected %s got %s", e.Code, pe.Code)
t.Fatalf("Expected %s got %s", e.Code, pe.Code)
}
if pe.Status != e.Status {
t.Fatal("Expected %s got %s", e.Status, pe.Status)
t.Fatalf("Expected %s got %s", e.Status, pe.Status)
}
}
}