Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Address linting issues to get tests passing with go1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Feb 19, 2018
1 parent 4ec0d64 commit 71e272f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion array_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestArray(t *testing.T) {
t.Fatalf("err: %s", err)
}
if valType := value.Type(); valType != TypeFalse {
t.Fatalf("bad type: %s", valType)
t.Fatalf("bad type: %v", valType)
}
if value.String() != "false" {
t.Fatalf("bad: %s", value)
Expand Down
4 changes: 2 additions & 2 deletions hash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestHash(t *testing.T) {
t.Fatalf("err: %s", err)
}
if valType := value.Type(); valType != TypeFalse {
t.Fatalf("bad type: %s", valType)
t.Fatalf("bad type: %v", valType)
}
if value.String() != "false" {
t.Fatalf("bad: %s", value)
Expand All @@ -55,7 +55,7 @@ func TestHash(t *testing.T) {
t.Fatalf("err: %s", err)
}
if value.Type() != TypeArray {
t.Fatalf("bad: %s", value.Type())
t.Fatalf("bad: %v", value.Type())
}
if value.String() != `["foo", "baz"]` {
t.Fatalf("bad: %s", value)
Expand Down
4 changes: 2 additions & 2 deletions parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestParserGenerateCode(t *testing.T) {
t.Fatalf("err: %s", err)
}
if warns != nil {
t.Fatalf("warnings: %s", warns)
t.Fatalf("warnings: %v", warns)
}

proc := p.GenerateCode()
Expand All @@ -41,7 +41,7 @@ func TestParserParse(t *testing.T) {
t.Fatalf("err: %s", err)
}
if warns != nil {
t.Fatalf("warnings: %s", warns)
t.Fatalf("warnings: %v", warns)
}
}

Expand Down
2 changes: 1 addition & 1 deletion value_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func TestMrbValueType(t *testing.T) {
t.Fatalf("loadstring failed for case %#v: %s", c, err)
}
if cType := r.Type(); cType != c.Expected {
t.Fatalf("bad type: got %s, expected %s", cType, c.Expected)
t.Fatalf("bad type: got %v, expected %v", cType, c.Expected)
}
}
}
Expand Down

0 comments on commit 71e272f

Please sign in to comment.