unify test data (#1417)

mkdir a test data dir.
This commit is contained in:
田欧
2018-08-12 23:38:31 +08:00
committed by Bo-Yi Wu
parent 1ae32f3a2c
commit 6159213462
13 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ func TestDebugPrintLoadTemplate(t *testing.T) {
setup(&w)
defer teardown()
templ := template.Must(template.New("").Delims("{[{", "}]}").ParseGlob("./fixtures/basic/hello.tmpl"))
templ := template.Must(template.New("").Delims("{[{", "}]}").ParseGlob("./testdata/template/hello.tmpl"))
debugPrintLoadTemplate(templ)
assert.Regexp(t, `^\[GIN-debug\] Loaded HTML Templates \(2\): \n(\t- \n|\t- hello\.tmpl\n){2}\n`, w.String())
}