1
This commit is contained in:
@@ -3,6 +3,7 @@ package sfps2
|
||||
import (
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -112,3 +113,13 @@ func TestGetRiderLatestPosition(t *testing.T) {
|
||||
fmt.Println(utils.Format4Output(resp, false))
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
func TestNew(t *testing.T) {
|
||||
te := strings.Split("113.71776,34.767501", ",")
|
||||
if len(te) > 0 {
|
||||
fmt.Println(te[0], te[1])
|
||||
lng := utils.Str2Float64(te[0])
|
||||
lat := utils.Str2Float64(te[1])
|
||||
fmt.Println(lng, lat)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user