spark-server/internal/module/user/entity/email_test.go
zhr ae9a71034d feat: implement Spark IM V3 modular monolith
Add HTTP /v1 MVC, TCP send path, groups with server-side member-avatar collage, object-storage upload, and friends/favorites around the architecture-v3 layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 19:52:11 +08:00

19 lines
435 B
Go

package entity
import "testing"
func TestIsTestEmail(t *testing.T) {
ok := []string{"test01@spark.com", "test10@spark.com", "TEST05@SPARK.COM"}
for _, e := range ok {
if !IsTestEmail(e) {
t.Fatalf("want test %s", e)
}
}
bad := []string{"test00@spark.com", "test11@spark.com", "test1@spark.com", "other@spark.com", "test01@example.com"}
for _, e := range bad {
if IsTestEmail(e) {
t.Fatalf("not test %s", e)
}
}
}