mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
parse_test: improve error messages
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
parent
97ab64af30
commit
5503c4cc89
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user