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>
19 lines
435 B
Go
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)
|
|
}
|
|
}
|
|
}
|