use backticks rather than backslashes in string literal
This commit is contained in:
parent
c8c61cf8bb
commit
93fcb0e87d
|
@ -610,7 +610,7 @@ func TestEnvironmentVariableSliceArgumentString(t *testing.T) {
|
|||
var args struct {
|
||||
Foo []string `arg:"env"`
|
||||
}
|
||||
setenv(t, "FOO", "bar,\"baz, qux\"")
|
||||
setenv(t, "FOO", `bar,"baz, qux"`)
|
||||
MustParse(&args)
|
||||
assert.Equal(t, []string{"bar", "baz, qux"}, args.Foo)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue