Initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package ysphone
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestFormatPhoneNumber(t *testing.T) {
|
||||
majia := "8612222273124"
|
||||
//empty := ""
|
||||
chinaPhone := "+8612222273141"
|
||||
hongKongPhome := "+0085262307493"
|
||||
cambodiaPhone := "+855965197993"
|
||||
//fmt.Print(majia[:6])
|
||||
t.Log("empty", FormatPhoneNumber(majia))
|
||||
t.Log("chinaPhone", FormatPhoneNumber(chinaPhone))
|
||||
t.Log("hongKongPhome", FormatPhoneNumber(hongKongPhome))
|
||||
t.Log("cambodiaPhone", FormatPhoneNumber(cambodiaPhone))
|
||||
}
|
||||
Reference in New Issue
Block a user