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
38f6f8ee
Commit
38f6f8ee
authored
Aug 10, 2013
by
miraclesu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update TestParseForm
parent
115b1d03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
utils_test.go
utils_test.go
+5
-5
No files found.
utils_test.go
View file @
38f6f8ee
...
...
@@ -124,18 +124,18 @@ func TestParseForm(t *testing.T) {
t
.
Fatal
(
err
)
}
if
u
.
Id
!=
0
{
t
.
Error
(
"Id should not be changed"
)
t
.
Error
f
(
"Id should equal 0 but got %v"
,
u
.
Id
)
}
if
len
(
u
.
tag
)
!=
0
{
t
.
Error
(
"tag
should not be changed"
)
t
.
Error
(
"tag
's length should equal 0 but got %v"
,
len
(
u
.
tag
)
)
}
if
u
.
Name
.
(
string
)
!=
"test"
{
t
.
Error
(
"
should be equal"
)
t
.
Error
(
"
Name should equal `test` but got `%v`"
,
u
.
Name
.
(
string
)
)
}
if
u
.
Age
!=
40
{
t
.
Error
(
"
should be equal"
)
t
.
Error
(
"
Age should equal 40 but got %v"
,
u
.
Age
)
}
if
u
.
Email
!=
"test@gmail.com"
{
t
.
Error
(
"
should be equal"
)
t
.
Error
(
"
Email should equal `test@gmail.com` but got `%v`"
,
u
.
Email
)
}
}
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