fix email regex rule,use gtest

This commit is contained in:
shiw
2023-08-14 09:29:15 +08:00
parent 0c267073b9
commit 59ee3c204a
2 changed files with 2 additions and 3 deletions

View File

@@ -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)
}