package common

import (
	"testing"

	. "github.com/onsi/gomega"
)

func TestValidMailAddress(t *testing.T) {
	g := NewWithT(t)
	g.Expect(ValidMailAddress("Z4g5X08x")).NotTo(BeTrue())
	g.Expect(ValidMailAddress("test@pingcap.com")).To(BeTrue())
	g.Expect(ValidMailAddress("90032-system@pingcap.com")).To(BeTrue())
}
