where
desc = "Good addresses are accepted."
expected = True
- actual = and (map validate_syntax good_addresses)
+ actual = all validate_syntax good_addresses
test_bad_addresses :: Test
test_bad_addresses =
where
desc = "Bad addresses are not accepted."
expected = True
- actual = and (map (not . validate_syntax) bad_addresses)
+ actual = all (not . validate_syntax) bad_addresses
test_unsupported_addresses :: Test
test_unsupported_addresses =
where
desc = "Unsupported addresses are not accepted."
expected = True
- actual = and (map (not . validate_syntax) unsupported_addresses)
+ actual = all (not . validate_syntax) unsupported_addresses
email_address_tests :: Test