Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
38f6f8ee
authored
2013-08-10 10:29:29 +0800
by
miraclesu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update TestParseForm
1 parent
115b1d03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
utils_test.go
utils_test.go
View file @
38f6f8e
...
...
@@ -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
Styling with
Markdown
is supported
Attach a file
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 post a comment