Rename upskirtref to testdata; upskirtref_test.go to ref_test.go.

This commit is contained in:
Dmitry Chestnykh 2015-03-24 06:27:58 +01:00
parent 6928e11ecd
commit 29c5b49e95
47 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ func doTestsReference(t *testing.T, files []string, flag int) {
}()
for _, basename := range files {
filename := filepath.Join("upskirtref", basename+".text")
filename := filepath.Join("testdata", basename+".text")
inputBytes, err := ioutil.ReadFile(filename)
if err != nil {
t.Errorf("Couldn't open '%s', error: %v\n", filename, err)
@ -42,7 +42,7 @@ func doTestsReference(t *testing.T, files []string, flag int) {
}
input := string(inputBytes)
filename = filepath.Join("upskirtref", basename+".html")
filename = filepath.Join("testdata", basename+".html")
expectedBytes, err := ioutil.ReadFile(filename)
if err != nil {
t.Errorf("Couldn't open '%s', error: %v\n", filename, err)