Inline tables

This commit is contained in:
Thomas Pelletier
2021-02-01 21:41:34 -05:00
parent bac65cc530
commit 44f7a7aead
2 changed files with 90 additions and 0 deletions
+5
View File
@@ -29,6 +29,8 @@ var inputs = []string{
`c = [[[]]]`,
`d = ["foo","bar"]`,
`d = ["foo", "test"]`,
`d = {}`,
`e = {f = "bar"}`,
}
func TestParse(t *testing.T) {
@@ -45,6 +47,9 @@ func TestParse(t *testing.T) {
type noopBuilder struct {
}
func (n noopBuilder) InlineTableSeparator() {}
func (n noopBuilder) InlineTableBegin() {}
func (n noopBuilder) InlineTableEnd() {}
func (n noopBuilder) ArraySeparator() {}
func (n noopBuilder) ArrayBegin() {}
func (n noopBuilder) ArrayEnd() {}