Skip to content

Commit

Permalink
go vet
Browse files Browse the repository at this point in the history
  • Loading branch information
justinas committed Feb 19, 2014
1 parent 6f31678 commit 6b64667
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions exempt_test.go
Expand Up @@ -35,7 +35,7 @@ func TestExemptPaths(t *testing.T) {
other := "/accounts"

if hand.IsExempt(other) {
t.Errorf("%v is exempt, but it shouldn't be")
t.Errorf("%v is exempt, but it shouldn't be", other)
}
}

Expand Down Expand Up @@ -81,13 +81,13 @@ func TestExemptGlobs(t *testing.T) {

for _, v := range matching {
if !hand.IsExempt(v) {
t.Error("%v should be exempt, but it isn't.")
t.Errorf("%v should be exempt, but it isn't.", v)
}
}

for _, v := range nonMatching {
if hand.IsExempt(v) {
t.Error("%v shouldn't be exempt, but it is")
t.Errorf("%v shouldn't be exempt, but it is", v)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions utils_test.go
Expand Up @@ -10,12 +10,12 @@ func TestsContains(t *testing.T) {

s1 := "abc"
if !sContains(slice, s1) {
t.Error("sContains said that %v doesn't contain %v, but it does.", slice, s1)
t.Errorf("sContains said that %v doesn't contain %v, but it does.", slice, s1)
}

s2 := "xyz"
if !sContains(slice, s2) {
t.Error("sContains said that %v contains %v, but it doesn't.", slice, s2)
t.Errorf("sContains said that %v contains %v, but it doesn't.", slice, s2)
}
}

Expand Down

0 comments on commit 6b64667

Please sign in to comment.