package parser import ( "fmt" "io/ioutil" "path/filepath" "reflect" "runtime" "strings" "testing" "github.com/hashicorp/hcl/hcl/ast" "github.com/hashicorp/hcl/hcl/token" ) func TestType(t *testing.T) { var literals = []struct { typ token.Type src string }{ {token.STRING, `foo = "foo"`}, {token.NUMBER, `foo = 123`}, {token.NUMBER, `foo = -29`}, {token.FLOAT, `foo = 123.12`}, {token.FLOAT, `foo = -123.12`}, {token.BOOL, `foo = true`}, {token.HEREDOC, "foo = <