Moved test files to testdata folder.

Changed the tests accordingly.
This commit is contained in:
Maxime
2015-07-23 09:35:46 +02:00
parent 2df30d186e
commit bc2feece4b
18 changed files with 18 additions and 9 deletions

View File

@ -2,6 +2,7 @@ package markdown
import (
"bytes"
"fmt"
"io/ioutil"
"log"
"os"
@ -106,6 +107,7 @@ func (md Markdown) processTemplate(c Config, requestPath string, tmpl []byte, me
// nothing fatal, only log the error.
// TODO: Report this non-fatal error, but don't log it here
log.Println(err)
fmt.Printf("Error: %v", err)
}
return b.Bytes(), nil