aboutsummaryrefslogtreecommitdiff
path: root/driver/parser_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'driver/parser_test.go')
-rw-r--r--driver/parser_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/driver/parser_test.go b/driver/parser_test.go
index c352e91..0bf8175 100644
--- a/driver/parser_test.go
+++ b/driver/parser_test.go
@@ -281,8 +281,10 @@ foo: "foo";
t.Fatal(err)
}
- var b grammar.GrammarBuilder
- g, err := b.Build(ast)
+ b := grammar.GrammarBuilder{
+ AST: ast,
+ }
+ g, err := b.Build()
if tt.specErr {
if err == nil {
t.Fatal("an expected error didn't occur")