structure2 test
This commit is contained in:
parent
dec60315c8
commit
1bffcd38ba
@ -78,6 +78,10 @@ func TestDecode_equal(t *testing.T) {
|
|||||||
"structure_multi.hcl",
|
"structure_multi.hcl",
|
||||||
"structure_multi.json",
|
"structure_multi.json",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"structure2.hcl",
|
||||||
|
"structure2.json",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, tc := range cases {
|
for _, tc := range cases {
|
||||||
|
9
test-fixtures/structure2.hcl
Normal file
9
test-fixtures/structure2.hcl
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
// This is a test structure for the lexer
|
||||||
|
foo "baz" {
|
||||||
|
key = 7
|
||||||
|
foo = "bar"
|
||||||
|
}
|
||||||
|
|
||||||
|
foo {
|
||||||
|
key = 7
|
||||||
|
}
|
10
test-fixtures/structure2.json
Normal file
10
test-fixtures/structure2.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"foo": [{
|
||||||
|
"baz": [{
|
||||||
|
"key": 7,
|
||||||
|
"foo": "bar"
|
||||||
|
}]
|
||||||
|
}, {
|
||||||
|
"key": 7
|
||||||
|
}]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user