FFZCCZ7QTJ2U6MX6BV5AUM7ARF56Z4PGXXGEMGPTJUQSWQCS24OAC
package luhn
import "testing"
func TestValid(t *testing.T) {
for _, test := range testCases {
if ok, _ := Valid(test.input); ok != test.ok {
t.Fatalf("Valid(%s): %s\n\t Expected: %t\n\t Got: %t", test.input, test.description, test.ok, ok)
}
}
}
func BenchmarkValid(b *testing.B) {
for i := 0; i < b.N; i++ {
Valid("2323 2005 7766 3554")
}
}