Skip to content

Commit

Permalink
Fix test case ( use parser.ParseFile )
Browse files Browse the repository at this point in the history
  • Loading branch information
goccy committed Dec 22, 2019
1 parent 0459fbb commit 825e932
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package parser_test

import (
"fmt"
"io/ioutil"
"path/filepath"
"strings"
"testing"
Expand Down Expand Up @@ -498,11 +497,7 @@ func TestNewLineChar(t *testing.T) {
"cr.yml",
"crlf.yml",
} {
file, err := ioutil.ReadFile(filepath.Join("testdata", f))
if err != nil {
t.Fatalf("%+v", err)
}
ast, err := parser.ParseBytes(file, 0)
ast, err := parser.ParseFile(filepath.Join("testdata", f), 0)
if err != nil {
t.Fatalf("%+v", err)
}
Expand Down

0 comments on commit 825e932

Please sign in to comment.