hotgo/server/utility/validate/validate_test.go

18 lines
424 B
Go
Raw Normal View History

// Package validate_test
// @Link https://github.com/bufanyun/hotgo
// @Copyright Copyright (c) 2023 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
package validate_test
2023-08-11 17:58:22 +08:00
import (
2023-08-14 09:29:15 +08:00
"github.com/gogf/gf/v2/test/gtest"
"hotgo/utility/validate"
2023-08-11 17:58:22 +08:00
"testing"
)
func TestIsEmail(t *testing.T) {
b := validate.IsEmail("QTT123456@163.com")
2023-08-14 09:29:15 +08:00
gtest.Assert(true, b)
2023-08-11 17:58:22 +08:00
}