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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user