diff options
Diffstat (limited to 'browserenv_unix_test.go')
-rw-r--r-- | browserenv_unix_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/browserenv_unix_test.go b/browserenv_unix_test.go index f49444e..0d61a52 100644 --- a/browserenv_unix_test.go +++ b/browserenv_unix_test.go @@ -33,6 +33,12 @@ func TestBrowserCommand(t *testing.T) { "https://duckduckgo.com", "open -a Firefox https://duckduckgo.com --other-arg", }, + { + "escapes single quotes in URL", + "open -a Firefox", + "https://duckduckgo.com/?q='s-Hertogenbosch", + "open -a Firefox 'https://duckduckgo.com/?q=%27s-Hertogenbosch'", + }, } for _, test := range tests { |