commit
c660219494
|
@ -6,7 +6,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
searchURL = "https://www.google.com/search"
|
searchURL = "https://duckduckgo.com/"
|
||||||
siteTag = "site:"
|
siteTag = "site:"
|
||||||
urlTag = "inurl:"
|
urlTag = "inurl:"
|
||||||
filetypeTag = "filetype:"
|
filetypeTag = "filetype:"
|
||||||
|
|
|
@ -21,7 +21,7 @@ func TestInit(t *testing.T) {
|
||||||
Site("example.com").
|
Site("example.com").
|
||||||
URL()
|
URL()
|
||||||
|
|
||||||
assert.Equal(result, "https://www.google.com/search?q=site%3Aexample.com", "they should be equal")
|
assert.Equal(result, "https://duckduckgo.com/?q=site%3Aexample.com", "they should be equal")
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("should convert to string correctly", func(t *testing.T) {
|
t.Run("should convert to string correctly", func(t *testing.T) {
|
||||||
|
|
Loading…
Reference in New Issue