- mtwmapi
This commit is contained in:
16
platformapi/mtwmapi/food_test.go
Normal file
16
platformapi/mtwmapi/food_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package mtwmapi
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestFoodList(t *testing.T) {
|
||||
result, err := api.FoodList(testPoiCode, 0, 200)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if len(result) == 0 {
|
||||
t.Fatal("should have food")
|
||||
}
|
||||
// t.Log(result)
|
||||
}
|
||||
Reference in New Issue
Block a user