forked from paymydrink/go-yelp-fusion
Porting golang yelp wrapper to v3-fusion-api
This commit is contained in:
24
yelp/coordinate_options_test.go
Normal file
24
yelp/coordinate_options_test.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package yelp
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/guregu/null"
|
||||
)
|
||||
|
||||
// TestCoordinateOptions will check using location options with bounding coordinates.
|
||||
func TestCoordinateOptions(t *testing.T) {
|
||||
client := getClient(t)
|
||||
options := SearchOptions{
|
||||
CoordinateOptions: &CoordinateOptions{
|
||||
null.FloatFrom(37.9),
|
||||
null.FloatFrom(-122.5),
|
||||
// null.FloatFromPtr(nil),
|
||||
// null.FloatFromPtr(nil),
|
||||
// null.FloatFromPtr(nil),
|
||||
},
|
||||
}
|
||||
result, err := client.DoSearch(options)
|
||||
check(t, err)
|
||||
assert(t, len(result.Businesses) > 0, containsResults)
|
||||
}
|
||||
Reference in New Issue
Block a user