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.json",
|
||||
},
|
||||
{
|
||||
"structure2.hcl",
|
||||
"structure2.json",
|
||||
},
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
// This is a test structure for the lexer
|
||||
foo "baz" {
|
||||
key = 7
|
||||
foo = "bar"
|
||||
}
|
||||
|
||||
foo {
|
||||
key = 7
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"foo": [{
|
||||
"baz": [{
|
||||
"key": 7,
|
||||
"foo": "bar"
|
||||
}]
|
||||
}, {
|
||||
"key": 7
|
||||
}]
|
||||
}
|
Loading…
Reference in New Issue