2024-03-07 20:08:56 +08:00
|
|
|
// 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"
|
2024-03-07 20:08:56 +08:00
|
|
|
"hotgo/utility/validate"
|
2023-08-11 17:58:22 +08:00
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestIsEmail(t *testing.T) {
|
2024-03-07 20:08:56 +08:00
|
|
|
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
|
|
|
}
|