Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
5503c4cc
Commit
5503c4cc
authored
9 years ago
by
Christian Couder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parse_test: improve error messages
License: MIT Signed-off-by:
Christian Couder
<
chriscool@tuxfamily.org
>
parent
97ab64af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
commands/cli/parse_test.go
commands/cli/parse_test.go
+2
-2
No files found.
commands/cli/parse_test.go
View file @
5503c4cc
...
...
@@ -166,10 +166,10 @@ func TestArgumentParsing(t *testing.T) {
}
req
,
_
,
_
,
err
:=
Parse
(
cmd
,
f
,
rootCmd
)
if
err
!=
nil
{
t
.
Errorf
(
"Command '%v' should have passed parsing"
,
cmd
)
t
.
Errorf
(
"Command '%v' should have passed parsing
: %v
"
,
cmd
,
err
)
}
if
!
sameWords
(
req
.
Arguments
(),
res
)
{
t
.
Errorf
(
"Arguments parsed from '%v' are
not '%v'"
,
cmd
,
res
)
t
.
Errorf
(
"Arguments parsed from '%v' are
'%v' instead of '%v'"
,
cmd
,
req
.
Arguments
()
,
res
)
}
}
...
...
This diff is collapsed.
Click to expand it.
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