Handle bools

This commit is contained in:
Thomas Pelletier
2021-03-14 15:52:22 -04:00
parent 3760527218
commit 04925e4882
5 changed files with 75 additions and 2 deletions
+19
View File
@@ -33,6 +33,25 @@ func TestParser_AST(t *testing.T) {
},
},
},
{
desc: "simple bool assignment",
input: `A = true`,
ast: ast.Root{
ast.Node{
Kind: ast.KeyValue,
Children: []ast.Node{
{
Kind: ast.Key,
Data: []byte(`A`),
},
{
Kind: ast.Bool,
Data: []byte(`true`),
},
},
},
},
},
{
desc: "array of strings",
input: `A = ["hello", ["world", "again"]]`,