printer: add list example
This commit is contained in:
parent
c703010b7f
commit
c9e7ec3621
@ -25,6 +25,7 @@ type entry struct {
|
|||||||
// Use go test -update to create/update the respective golden files.
|
// Use go test -update to create/update the respective golden files.
|
||||||
var data = []entry{
|
var data = []entry{
|
||||||
{"complexhcl.input", "complexhcl.golden"},
|
{"complexhcl.input", "complexhcl.golden"},
|
||||||
|
{"list.input", "list.golden"},
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestFiles(t *testing.T) {
|
func TestFiles(t *testing.T) {
|
||||||
|
27
printer/testdata/list.golden
vendored
Normal file
27
printer/testdata/list.golden
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
foo = ["fatih", "arslan"]
|
||||||
|
|
||||||
|
foo = ["bar", "qaz"]
|
||||||
|
|
||||||
|
foo = ["zeynep",
|
||||||
|
"arslan",
|
||||||
|
]
|
||||||
|
|
||||||
|
foo = ["fatih", "zeynep",
|
||||||
|
"arslan",
|
||||||
|
]
|
||||||
|
|
||||||
|
foo = [
|
||||||
|
"vim-go",
|
||||||
|
"golang",
|
||||||
|
"hcl",
|
||||||
|
]
|
||||||
|
|
||||||
|
foo = []
|
||||||
|
|
||||||
|
foo = [1, 2, 3, 4]
|
||||||
|
|
||||||
|
foo = [
|
||||||
|
"kenya",
|
||||||
|
"ethiopia",
|
||||||
|
"columbia",
|
||||||
|
]
|
21
printer/testdata/list.input
vendored
Normal file
21
printer/testdata/list.input
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
foo = ["fatih", "arslan" ]
|
||||||
|
|
||||||
|
foo = [ "bar", "qaz", ]
|
||||||
|
|
||||||
|
foo = [ "zeynep",
|
||||||
|
"arslan", ]
|
||||||
|
|
||||||
|
foo = ["fatih", "zeynep",
|
||||||
|
"arslan", ]
|
||||||
|
|
||||||
|
foo = [
|
||||||
|
"vim-go",
|
||||||
|
"golang", "hcl"]
|
||||||
|
|
||||||
|
foo = []
|
||||||
|
|
||||||
|
foo = [1, 2,3, 4]
|
||||||
|
|
||||||
|
foo = [
|
||||||
|
"kenya", "ethiopia",
|
||||||
|
"columbia"]
|
Loading…
Reference in New Issue
Block a user