mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-26 16:46:14 +08:00
fix email regex rule,use gtest
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
package validate
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/gogf/gf/v2/test/gtest"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestIsEmail(t *testing.T) {
|
||||
b := IsEmail("QTT123456@163.com")
|
||||
assert.True(t, b, "ok~")
|
||||
gtest.Assert(true, b)
|
||||
}
|
||||
|
Reference in New Issue
Block a user