github.com/Aoi-hosizora/ahlib@v1.5.1-0.20230404072829-241b93cf91c7/xconstant/regexps/regexps_test.go (about)

     1  package regexps
     2  
     3  import (
     4  	"github.com/Aoi-hosizora/ahlib/xtesting"
     5  	"regexp"
     6  	"testing"
     7  )
     8  
     9  func TestRegexps(t *testing.T) {
    10  	for _, re := range []*regexp.Regexp{
    11  		AlphaRegex, AlphaNumericRegex, AlphaUnicodeRegex, AlphaUnicodeNumericRegex, NumericRegex, NumberRegex, HexadecimalRegex, HexColorRegex, RgbRegex, RgbaRegex,
    12  		HslRegex, HslaRegex, E164Regex, EmailRegex, Base64Regex, Base64URLRegex, ISBN10Regex, ISBN13Regex, UUID3Regex, UUID4Regex, UUID5Regex, UUIDRegex, UUID3RFC4122Regex,
    13  		UUID4RFC4122Regex, UUID5RFC4122Regex, UUIDRFC4122Regex, ULIDRegex, Md4Regex, Md5Regex, Sha256Regex, Sha384Regex, Sha512Regex, Ripemd128Regex, Ripemd160Regex,
    14  		Tiger128Regex, Tiger160Regex, Tiger192Regex, ASCIIRegex, PrintableASCIIRegex, MultibyteRegex, DataURIRegex, LatitudeRegex, LongitudeRegex, SSNRegex, HostnameRegexRFC952,
    15  		HostnameRegexRFC1123, FqdnRegexRFC1123, BtcAddressRegex, BtcUpperAddressRegexBech32, BtcLowerAddressRegexBech32, EthAddressRegex, EthAddressRegexUpper,
    16  		EthAddressRegexLower, URLEncodedRegex, HTMLEncodedRegex, HTMLRegex, JWTRegex, SplitParamsRegex, BicRegex, SemverRegex, DnsRegexRFC1035Label,
    17  	} {
    18  		xtesting.NotBlankString(t, re.String())
    19  	}
    20  }