Skip to content

Commit 2ecc29a

Browse files
committed
Make error messages to be more informative
1 parent 767a71b commit 2ecc29a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/arg_parser_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ func TestParseArgs(t *testing.T) {
101101
opts, files := ParseArgs(param.args)
102102

103103
if slices.Compare(opts, param.wantOpts) != 0 {
104-
t.Errorf("args='%q', want=%q, got=%q", param.args, param.wantOpts, opts)
104+
t.Errorf("args='%q', wantOpts=%q, gotOpts=%q", param.args, param.wantOpts, opts)
105105
}
106106
if slices.Compare(files, param.wantFiles) != 0 {
107-
t.Errorf("args='%q', want=%q, got=%q", param.args, param.wantFiles, files)
107+
t.Errorf("args='%q', wantFiles=%q, gotFiles=%q", param.args, param.wantFiles, files)
108108
}
109109
}
110110
}

0 commit comments

Comments
 (0)