structure2 test

This commit is contained in:
Mitchell Hashimoto 2014-08-02 22:18:39 -07:00
parent dec60315c8
commit 1bffcd38ba
3 changed files with 23 additions and 0 deletions

View File

@ -78,6 +78,10 @@ func TestDecode_equal(t *testing.T) {
"structure_multi.hcl",
"structure_multi.json",
},
{
"structure2.hcl",
"structure2.json",
},
}
for _, tc := range cases {

View File

@ -0,0 +1,9 @@
// This is a test structure for the lexer
foo "baz" {
key = 7
foo = "bar"
}
foo {
key = 7
}

View File

@ -0,0 +1,10 @@
{
"foo": [{
"baz": [{
"key": 7,
"foo": "bar"
}]
}, {
"key": 7
}]
}