diff options
Diffstat (limited to 'tester')
-rw-r--r-- | tester/tester.go | 2 | ||||
-rw-r--r-- | tester/tester_test.go | 10 |
2 files changed, 4 insertions, 8 deletions
diff --git a/tester/tester.go b/tester/tester.go index 187e36c..3e6941f 100644 --- a/tester/tester.go +++ b/tester/tester.go @@ -8,7 +8,7 @@ import ( "runtime/debug" "strings" - "github.com/nihei9/vartan/driver" + driver "github.com/nihei9/vartan/driver/parser" gspec "github.com/nihei9/vartan/spec/grammar" tspec "github.com/nihei9/vartan/spec/test" ) diff --git a/tester/tester_test.go b/tester/tester_test.go index fb007ca..1ea9e31 100644 --- a/tester/tester_test.go +++ b/tester/tester_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/nihei9/vartan/grammar" - gspec "github.com/nihei9/vartan/spec/grammar" + "github.com/nihei9/vartan/spec/grammar/parser" tspec "github.com/nihei9/vartan/spec/test" ) @@ -123,18 +123,14 @@ foo foo foo } for i, tt := range tests { t.Run(fmt.Sprintf("#%v", i), func(t *testing.T) { - ast, err := gspec.Parse(strings.NewReader(tt.grammarSrc)) + ast, err := parser.Parse(strings.NewReader(tt.grammarSrc)) if err != nil { t.Fatal(err) } b := grammar.GrammarBuilder{ AST: ast, } - g, err := b.Build() - if err != nil { - t.Fatal(err) - } - cg, _, err := grammar.Compile(g) + cg, _, err := b.Build() if err != nil { t.Fatal(err) } |