Mixing raw and interpreted string literals didn't make any sense..
diff --git a/parser_test.go b/parser_test.go
index ac3da71..30ecb5e 100644
--- a/parser_test.go
+++ b/parser_test.go
@@ -318,14 +318,14 @@
args: []string{"--string-slice", "foobar", "--string-slice", "-o"},
expectError: true,
errType: ErrExpectedArgument,
- errMsg: `expected argument for flag ` + "`" + `--string-slice', but got option ` + "`" + `-o'`,
+ errMsg: "expected argument for flag `--string-slice', but got option `-o'",
},
{
// long option must not be accepted as argument
args: []string{"--string-slice", "foobar", "--string-slice", "--other-option"},
expectError: true,
errType: ErrExpectedArgument,
- errMsg: `expected argument for flag ` + "`" + `--string-slice', but got option ` + "`" + `--other-option'`,
+ errMsg: "expected argument for flag `--string-slice', but got option `--other-option'",
},
{
// quoted and appended option should be accepted as argument (even if it looks like an option)