1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-12 14:41:01 +00:00

beego: template fund when the start> len(bt)

This commit is contained in:
astaxie
2014-08-05 23:52:06 +08:00
parent a3f40234ca
commit ea6982fcea
2 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,9 @@ func TestSubstr(t *testing.T) {
if Substr(s, 0, 100) != "012345" {
t.Error("should be equal")
}
if Substr(s, 12, 100) != "012345" {
t.Error("should be equal")
}
}
func TestHtml2str(t *testing.T) {