diff --git a/utils_test.go b/utils_test.go index b0199c4c..70917a81 100644 --- a/utils_test.go +++ b/utils_test.go @@ -1,7 +1,6 @@ package beego import ( - "html/template" "net/url" "testing" "time" @@ -18,68 +17,6 @@ func TestWebTime(t *testing.T) { } } -func TestMarkDown(t *testing.T) { - raw := `## beego - -[![Build Status](https://drone.io/github.com/astaxie/beego/status.png)](https://drone.io/github.com/astaxie/beego/latest) - -beego is a Go Framework which is inspired from tornado and sinatra. - -It is a simply & powerful web framework. - - -## Features - -* RESTFul support - -## Documentation - -[English](https://github.com/astaxie/beego/tree/master/docs/en) - -## LICENSE - -beego is licensed under the Apache Licence, Version 2.0 -(http://www.apache.org/licenses/LICENSE-2.0.html). - - -## Use case - -- Displaying API documentation: [gowalker](https://github.com/Unknwon/gowalker) -` - output := `

beego

- -

![Build Status](https://drone.io/github.com/astaxie/beego/status.png)

- -

beego is a Go Framework which is inspired from tornado and sinatra.

- -

It is a simply & powerful web framework.

- -

Features

- - - -

Documentation

- -

English

- -

LICENSE

- -

beego is licensed under the Apache Licence, Version 2.0 -(http://www.apache.org/licenses/LICENSE-2.0.html).

- -

Use case

- - -` - if MarkDown(raw) != template.HTML(output) { - t.Error("should be equal") - } -} - func TestSubstr(t *testing.T) { s := `012345` if Substr(s, 0, 2) != "01" {