test_good_addresses =
testCase desc $ actual @?= expected
where
- desc = "Good addresses are accepted."
+ desc = "Good addresses are accepted"
expected = True
actual = all (validate_syntax False) good_addresses
test_good_addresses_rfc =
testCase desc $ actual @?= expected
where
- desc = "Good addresses are accepted with --rfc5322."
+ desc = "Good addresses are accepted with --rfc5322"
expected = True
actual = all (validate_syntax True) good_addresses
test_bad_addresses =
testCase desc $ actual @?= expected
where
- desc = "Bad addresses are not accepted."
+ desc = "Bad addresses are not accepted"
expected = True
actual = all (not . (validate_syntax False)) bad_addresses
testCase desc $
assertEqual desc expected actual
where
- desc = "Bad addresses are not accepted with --rfc5322."
+ desc = "Bad addresses are not accepted with --rfc5322"
expected = True
actual = all (not . (validate_syntax True)) bad_addresses
test_unsupported_addresses =
testCase desc $ actual @?= expected
where
- desc = "Unsupported addresses are not accepted."
+ desc = "Unsupported addresses are not accepted"
expected = True
actual = all (not . (validate_syntax False)) unsupported_addresses
test_unsupported_addresses_rfc =
testCase desc $ actual @?= expected
where
- desc = "Unsupported addresses are accepted with --rfc5322."
+ desc = "Unsupported addresses are accepted with --rfc5322"
expected = True
actual = all (validate_syntax True) unsupported_addresses