mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-02-02 18:28:41 +08:00
fix email regex rule,use gtest
This commit is contained in:
parent
0c267073b9
commit
59ee3c204a
@ -26,7 +26,6 @@ require (
|
|||||||
github.com/qiniu/go-sdk/v7 v7.14.0
|
github.com/qiniu/go-sdk/v7 v7.14.0
|
||||||
github.com/shirou/gopsutil/v3 v3.23.3
|
github.com/shirou/gopsutil/v3 v3.23.3
|
||||||
github.com/silenceper/wechat/v2 v2.1.4
|
github.com/silenceper/wechat/v2 v2.1.4
|
||||||
github.com/stretchr/testify v1.8.3
|
|
||||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.633
|
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.633
|
||||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sms v1.0.633
|
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sms v1.0.633
|
||||||
github.com/tencentyun/cos-go-sdk-v5 v0.7.41
|
github.com/tencentyun/cos-go-sdk-v5 v0.7.41
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package validate
|
package validate
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/gogf/gf/v2/test/gtest"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestIsEmail(t *testing.T) {
|
func TestIsEmail(t *testing.T) {
|
||||||
b := IsEmail("QTT123456@163.com")
|
b := IsEmail("QTT123456@163.com")
|
||||||
assert.True(t, b, "ok~")
|
gtest.Assert(true, b)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user