Removed default test file and added tests in test/ subdirectory

This commit is contained in:
Oliver Jakoubek 2020-05-29 14:19:35 +02:00
commit 91e88f42c4
4 changed files with 142 additions and 129 deletions

11
test/util.go Normal file
View file

@ -0,0 +1,11 @@
package test
import "io/ioutil"
func getTestFileContent(filename string) string {
testcontent, err := ioutil.ReadFile(filename)
if err != nil {
panic(err)
}
return string(testcontent)
}