Skip to content

Commit

Permalink
More line ending normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhamlin committed Nov 26, 2023
1 parent 6c331e1 commit c53f77c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/reader/clj_conformance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ func FuzzCLJConformance(f *testing.F) {
// skip quasiquote tests for now
continue
}
data, err := ioutil.ReadFile(path)
data, err := readFile(path)
if err != nil {
f.Fatal(err)
}
data = normalizeLineEndings(data)

f.Add(string(data))
}

Expand Down Expand Up @@ -183,7 +183,7 @@ func getCLJEquivCache(glj, clj string) (buf []byte, cached bool) {
if _, err := os.Stat(path); err != nil {
return nil, false
}
buf, err := ioutil.ReadFile(path)
buf, err := readFile(path)
if err != nil {
panic(err)
}
Expand Down Expand Up @@ -284,7 +284,7 @@ func (r *cljReader) stop() {
func getFromCache(program string) (bool, string, error) {
hash := sha256.Sum256([]byte(program))
path := filepath.Join("testdata", "clj-cache", "read", fmt.Sprintf("%x.glj", hash))
data, err := ioutil.ReadFile(path)
data, err := readFile(path)
if err != nil {
return false, "", nil
}
Expand Down

0 comments on commit c53f77c

Please sign in to comment.