use backticks rather than backslashes in string literal

This commit is contained in:
Alex Flint 2019-05-02 09:46:11 -07:00
parent c8c61cf8bb
commit 93fcb0e87d
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}