Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
6b5dc3b7
Commit
6b5dc3b7
authored
Jul 26, 2013
by
miraclesu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove MarkDown test
parent
d31ac49e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
63 deletions
+0
-63
utils_test.go
utils_test.go
+0
-63
No files found.
utils_test.go
View file @
6b5dc3b7
package
beego
package
beego
import
(
import
(
"html/template"
"net/url"
"net/url"
"testing"
"testing"
"time"
"time"
...
@@ -18,68 +17,6 @@ func TestWebTime(t *testing.T) {
...
@@ -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
:=
`<h2>beego</h2>
<p><a href="https://drone.io/github.com/astaxie/beego/latest">![Build Status](https://drone.io/github.com/astaxie/beego/status.png)</a></p>
<p>beego is a Go Framework which is inspired from tornado and sinatra.</p>
<p>It is a simply & powerful web framework.</p>
<h2>Features</h2>
<ul>
<li>RESTFul support</li>
</ul>
<h2>Documentation</h2>
<p><a href="https://github.com/astaxie/beego/tree/master/docs/en">English</a></p>
<h2>LICENSE</h2>
<p>beego is licensed under the Apache Licence, Version 2.0
(http://www.apache.org/licenses/LICENSE-2.0.html).</p>
<h2>Use case</h2>
<ul>
<li>Displaying API documentation: <a href="https://github.com/Unknwon/gowalker">gowalker</a></li>
</ul>
`
if
MarkDown
(
raw
)
!=
template
.
HTML
(
output
)
{
t
.
Error
(
"should be equal"
)
}
}
func
TestSubstr
(
t
*
testing
.
T
)
{
func
TestSubstr
(
t
*
testing
.
T
)
{
s
:=
`012345`
s
:=
`012345`
if
Substr
(
s
,
0
,
2
)
!=
"01"
{
if
Substr
(
s
,
0
,
2
)
!=
"01"
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment