1
This commit is contained in:
19
business/partner/delivery/tiktok_store/store_test.go
Normal file
19
business/partner/delivery/tiktok_store/store_test.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package tiktok_store
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"github.com/golang/tools/go/ssa/interp/testdata/src/fmt"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestStoreUpdateFence(t *testing.T) {
|
||||
tempStr := strings.Split("104.111331,30.67964544419017;104.13348225189759,30.671752134736078;104.14265760085712,30.652696;104.13348225189759,30.63363986526392;104.111331,30.625746555809826;104.08917974810242,30.63363986526392;104.0800043991429,30.652696;104.08917974810242,30.671752134736078", ";")
|
||||
fmt.Println("%d", len(tempStr))
|
||||
for v := len(tempStr) - 1; v >= 0; v-- {
|
||||
s2 := strings.Split(tempStr[v], ",")
|
||||
Longitude := utils.Str2Float64(s2[0])
|
||||
Latitude := utils.Str2Float64(s2[1])
|
||||
fmt.Sprintf("%s,%s", Longitude, Latitude)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user