Move expected test results to testdata/

This commit is contained in:
Christian Muehlhaeuser committed 2019-12-15 05:29:27 +01:00
1 parent f428b02686
commit 8a9d1795ff
14 files changed
+2 -2

No files matched your search

+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 {
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.