mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 13:22:09 +08:00
Remove the LF
in the testdata/template/raw.tmpl
, because if set the git config core.autocrlf=true
, will append CR
to the raw.tmpl automatically, then test is failed on Windows
This commit is contained in:
parent
393b0dc287
commit
8a097aa58e
@ -202,7 +202,7 @@ func TestLoadHTMLGlobFromFuncMap(t *testing.T) {
|
||||
}
|
||||
|
||||
resp, _ := ioutil.ReadAll(res.Body)
|
||||
assert.Equal(t, "Date: 2017/07/01\n", string(resp))
|
||||
assert.Equal(t, "Date: 2017/07/01", string(resp))
|
||||
}
|
||||
|
||||
func init() {
|
||||
@ -320,7 +320,7 @@ func TestLoadHTMLFilesFuncMap(t *testing.T) {
|
||||
}
|
||||
|
||||
resp, _ := ioutil.ReadAll(res.Body)
|
||||
assert.Equal(t, "Date: 2017/07/01\n", string(resp))
|
||||
assert.Equal(t, "Date: 2017/07/01", string(resp))
|
||||
}
|
||||
|
||||
func TestAddRoute(t *testing.T) {
|
||||
|
2
testdata/template/raw.tmpl
vendored
2
testdata/template/raw.tmpl
vendored
@ -1 +1 @@
|
||||
Date: {[{.now | formatAsDate}]}
|
||||
Date: {[{.now | formatAsDate}]}
|
Loading…
x
Reference in New Issue
Block a user