Move expected test results to testdata/

This commit is contained in:
Christian Muehlhaeuser
2019-12-15 05:29:27 +01:00
parent f428b02686
commit 8a9d1795ff
14 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -16,8 +16,8 @@ import (
) )
const ( const (
examplesDir = "../styles/examples/"
generate = false generate = false
examplesDir = "../styles/examples/"
) )
func TestRenderer(t *testing.T) { func TestRenderer(t *testing.T) {
@@ -29,7 +29,7 @@ func TestRenderer(t *testing.T) {
for _, f := range files { for _, f := range files {
bn := strings.TrimSuffix(filepath.Base(f), ".md") bn := strings.TrimSuffix(filepath.Base(f), ".md")
sn := filepath.Join(examplesDir, bn+".style") sn := filepath.Join(examplesDir, bn+".style")
tn := filepath.Join(examplesDir, bn+".test") tn := filepath.Join("../testdata", bn+".test")
in, err := ioutil.ReadFile(f) in, err := ioutil.ReadFile(f)
if err != nil { if err != nil {
View File
View File
View File
View File
View File
View File