diff --git a/misc_test.go b/misc_test.go index facf0608..b6c0b496 100644 --- a/misc_test.go +++ b/misc_test.go @@ -1254,8 +1254,10 @@ func TestParser(t *testing.T) { msgList = addMETri(msgList, "\n//github.com/Azareal/Gosora", "
//github.com/Azareal/Gosora") msgList = addMETri(msgList, "\n//github.com/Azareal/Gosora\n", "
//github.com/Azareal/Gosora
") msgList = addMETri(msgList, "//github.com/Azareal/Gosora\n//github.com/Azareal/Gosora", "//github.com/Azareal/Gosora
//github.com/Azareal/Gosora") + msgList = addMETri(msgList, "//github.com/Azareal/Gosora\n\n//github.com/Azareal/Gosora", "//github.com/Azareal/Gosora

//github.com/Azareal/Gosora") msgList = addMETri(msgList, "//"+common.Site.URL, "//"+common.Site.URL+"") msgList = addMETri(msgList, "//"+common.Site.URL+"\n", "//"+common.Site.URL+"
") + msgList = addMETri(msgList, "//"+common.Site.URL+"\n//"+common.Site.URL, "//"+common.Site.URL+"
//"+common.Site.URL+"") for _, item := range msgList { res = common.ParseMessage(item.Msg, 1, "forums")