Standard Table

This commit is contained in:
Thomas Pelletier
2021-02-01 22:03:53 -05:00
parent 44f7a7aead
commit aae4656c64
2 changed files with 90 additions and 6 deletions
+7
View File
@@ -31,6 +31,11 @@ var inputs = []string{
`d = ["foo", "test"]`,
`d = {}`,
`e = {f = "bar"}`,
`[foo]`,
`[ test ]`,
`[ "hello".world ]`,
`[test]
a = false`,
}
func TestParse(t *testing.T) {
@@ -47,6 +52,8 @@ func TestParse(t *testing.T) {
type noopBuilder struct {
}
func (n noopBuilder) StandardTableBegin() {}
func (n noopBuilder) StandardTableEnd() {}
func (n noopBuilder) InlineTableSeparator() {}
func (n noopBuilder) InlineTableBegin() {}
func (n noopBuilder) InlineTableEnd() {}