Merge pull request #5 from mattn/fix-test-windows

Fix test for Windows
This commit is contained in:
itchyny 2020-01-08 21:35:52 +09:00 committed by GitHub
commit 69e86775b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -293,7 +293,7 @@ func fileContents(dir string) map[string]string {
} else {
path := filepath.Join(dir, fi.Name())
cnt, _ := ioutil.ReadFile(path)
m[path] = string(cnt)
m[filepath.ToSlash(path)] = string(cnt)
}
}
if len(m) == 0 {