summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian A. Weber2022-03-15 11:21:20 +0100
committerChristian A. Weber2022-03-15 11:21:20 +0100
commitbb123979c91d68d88e39d5b73de39baa6c665ba7 (patch)
treebf56ca984fc3392f2846340b298577bd213b35d4
parentffa02ae4d0b2b2f6e8239f48e309ee992fba1e3f (diff)
downloaditools-bb123979c91d68d88e39d5b73de39baa6c665ba7.tar.gz
itools-bb123979c91d68d88e39d5b73de39baa6c665ba7.tar.bz2
itools-bb123979c91d68d88e39d5b73de39baa6c665ba7.zip
simple unit test for it_mail::address_error()
-rwxr-xr-xtest/it_mail.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/it_mail.t b/test/it_mail.t
index e5e8ab8..6a63268 100755
--- a/test/it_mail.t
+++ b/test/it_mail.t
@@ -93,3 +93,9 @@ is(
"§önÐë®z€ı¢ħèṇ",
"Don't escape Subject: field on instanziation"
);
+
+is(
+ it_mail::address_error('neuman@example.com, <neuman@example.com>, "Neuman, Alfred E." <neuman@example.com>, aneuman'),
+ null,
+ "Accept valid e-mail addresses"
+);