package user

import "testing"

func TestValidDisplayUserIDAllowsFiveDigitSeedAccounts(t *testing.T) {
	t.Parallel()

	valid := []string{"10001", "99999", "123456", "12345678901"}
	for _, value := range valid {
		if !ValidDisplayUserID(value) {
			t.Fatalf("display_user_id %s should be valid", value)
		}
	}

	invalid := []string{"", "09999", "9999", "123456789012", "12a45"}
	for _, value := range invalid {
		if ValidDisplayUserID(value) {
			t.Fatalf("display_user_id %s should be invalid", value)
		}
	}
}
