Add test for list of objects in printer
This commit is contained in:
parent
c30e0cdccf
commit
5c900ca702
@ -35,6 +35,7 @@ var data = []entry{
|
|||||||
{"comment_aligned.input", "comment_aligned.golden"},
|
{"comment_aligned.input", "comment_aligned.golden"},
|
||||||
{"comment_standalone.input", "comment_standalone.golden"},
|
{"comment_standalone.input", "comment_standalone.golden"},
|
||||||
{"empty_block.input", "empty_block.golden"},
|
{"empty_block.input", "empty_block.golden"},
|
||||||
|
{"list_of_objects.input", "list_of_objects.golden"},
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestFiles(t *testing.T) {
|
func TestFiles(t *testing.T) {
|
||||||
|
10
hcl/printer/testdata/list_of_objects.golden
vendored
Normal file
10
hcl/printer/testdata/list_of_objects.golden
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
list_of_objects = [
|
||||||
|
{
|
||||||
|
key1 = "value1"
|
||||||
|
key2 = "value2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key3 = "value3"
|
||||||
|
key4 = "value4"
|
||||||
|
},
|
||||||
|
]
|
10
hcl/printer/testdata/list_of_objects.input
vendored
Normal file
10
hcl/printer/testdata/list_of_objects.input
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
list_of_objects = [
|
||||||
|
{
|
||||||
|
key1 = "value1"
|
||||||
|
key2 = "value2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key3 = "value3"
|
||||||
|
key4 = "value4"
|
||||||
|
}
|
||||||
|
]
|
Loading…
x
Reference in New Issue
Block a user