20 lines
324 B
Go
20 lines
324 B
Go
|
package foursquare
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
|
||
|
func TestNewQueryForLocation(t *testing.T) {
|
||
|
apiKey := "key"
|
||
|
lat := "54.000"
|
||
|
lon := "-4.000"
|
||
|
modifierType := "chain"
|
||
|
modifier := "ab4bee40"
|
||
|
|
||
|
q := NewQueryForLocation(apiKey, lat, lon, modifierType, modifier)
|
||
|
|
||
|
if q.APIKey != apiKey {
|
||
|
t.Fatalf("Something broke")
|
||
|
}
|
||
|
}
|