Remove MarkDown test
Showing
1 changed file
with
0 additions
and
63 deletions
| 1 | package beego | 1 | package beego |
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "html/template" | ||
| 5 | "net/url" | 4 | "net/url" |
| 6 | "testing" | 5 | "testing" |
| 7 | "time" | 6 | "time" |
| ... | @@ -18,68 +17,6 @@ func TestWebTime(t *testing.T) { | ... | @@ -18,68 +17,6 @@ func TestWebTime(t *testing.T) { |
| 18 | } | 17 | } |
| 19 | } | 18 | } |
| 20 | 19 | ||
| 21 | func TestMarkDown(t *testing.T) { | ||
| 22 | raw := `## beego | ||
| 23 | |||
| 24 | [](https://drone.io/github.com/astaxie/beego/latest) | ||
| 25 | |||
| 26 | beego is a Go Framework which is inspired from tornado and sinatra. | ||
| 27 | |||
| 28 | It is a simply & powerful web framework. | ||
| 29 | |||
| 30 | |||
| 31 | ## Features | ||
| 32 | |||
| 33 | * RESTFul support | ||
| 34 | |||
| 35 | ## Documentation | ||
| 36 | |||
| 37 | [English](https://github.com/astaxie/beego/tree/master/docs/en) | ||
| 38 | |||
| 39 | ## LICENSE | ||
| 40 | |||
| 41 | beego is licensed under the Apache Licence, Version 2.0 | ||
| 42 | (http://www.apache.org/licenses/LICENSE-2.0.html). | ||
| 43 | |||
| 44 | |||
| 45 | ## Use case | ||
| 46 | |||
| 47 | - Displaying API documentation: [gowalker](https://github.com/Unknwon/gowalker) | ||
| 48 | ` | ||
| 49 | output := `<h2>beego</h2> | ||
| 50 | |||
| 51 | <p><a href="https://drone.io/github.com/astaxie/beego/latest"></a></p> | ||
| 52 | |||
| 53 | <p>beego is a Go Framework which is inspired from tornado and sinatra.</p> | ||
| 54 | |||
| 55 | <p>It is a simply & powerful web framework.</p> | ||
| 56 | |||
| 57 | <h2>Features</h2> | ||
| 58 | |||
| 59 | <ul> | ||
| 60 | <li>RESTFul support</li> | ||
| 61 | </ul> | ||
| 62 | |||
| 63 | <h2>Documentation</h2> | ||
| 64 | |||
| 65 | <p><a href="https://github.com/astaxie/beego/tree/master/docs/en">English</a></p> | ||
| 66 | |||
| 67 | <h2>LICENSE</h2> | ||
| 68 | |||
| 69 | <p>beego is licensed under the Apache Licence, Version 2.0 | ||
| 70 | (http://www.apache.org/licenses/LICENSE-2.0.html).</p> | ||
| 71 | |||
| 72 | <h2>Use case</h2> | ||
| 73 | |||
| 74 | <ul> | ||
| 75 | <li>Displaying API documentation: <a href="https://github.com/Unknwon/gowalker">gowalker</a></li> | ||
| 76 | </ul> | ||
| 77 | ` | ||
| 78 | if MarkDown(raw) != template.HTML(output) { | ||
| 79 | t.Error("should be equal") | ||
| 80 | } | ||
| 81 | } | ||
| 82 | |||
| 83 | func TestSubstr(t *testing.T) { | 20 | func TestSubstr(t *testing.T) { |
| 84 | s := `012345` | 21 | s := `012345` |
| 85 | if Substr(s, 0, 2) != "01" { | 22 | if Substr(s, 0, 2) != "01" { | ... | ... |
-
Please register or sign in to post a comment