Add additional comment test cases

Some of these fail in HCL1 fmt
This commit is contained in:
Paul Tyng 2018-10-31 09:21:11 -04:00
parent 3e4b7e0eb2
commit e8e85f5edd
No known key found for this signature in database
GPG Key ID: E518875D6C65835A

View File

@ -304,6 +304,102 @@ zebra = "striped" # baz
𝒜 = 1 # foo
bungle = "🇬🇧" # baz
zebra = "striped" # baz
`,
},
{
`
foo {
# ...
}
`,
`
foo {
# ...
}
`,
},
{
`
foo = {
# ...
}
`,
`
foo = {
# ...
}
`,
},
{
`
foo = [
# ...
]
`,
`
foo = [
# ...
]
`,
},
{
`
foo = [{
# ...
}]
`,
`
foo = [{
# ...
}]
`,
},
{
`
foo {
bar {
# ...
}
}
`,
`
foo {
bar {
# ...
}
}
`,
},
{
`
foo {
bar = {
# ...
}
}
`,
`
foo {
bar = {
# ...
}
}
`,
},
{
`
foo {
bar = [
# ...
]
}
`,
`
foo {
bar = [
# ...
]
}
`,
},
}