diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-25 09:39:50 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-25 09:39:50 +0100 |
commit | 41219c6320a4c9744e5a051070fc78c1dd6403dd (patch) | |
tree | ac6f0d1cf04f2ae7a5ef475a1da2d978b465d0cb | |
parent | 96e8f69f2b42738b6c47a959cd7d68c8f08acf9b (diff) | |
download | rspamd-41219c6320a4c9744e5a051070fc78c1dd6403dd.tar.gz rspamd-41219c6320a4c9744e5a051070fc78c1dd6403dd.zip |
[Test] Improve SMTP address tests
-rw-r--r-- | test/lua/unit/smtp_addr.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lua/unit/smtp_addr.lua b/test/lua/unit/smtp_addr.lua index fab197dc9..4dd6fef87 100644 --- a/test/lua/unit/smtp_addr.lua +++ b/test/lua/unit/smtp_addr.lua @@ -30,6 +30,7 @@ context("SMTP address check functions", function() {'a@example.com', {user = 'a', domain = 'example.com', addr = 'a@example.com'}}, {'a+b@example.com', {user = 'a+b', domain = 'example.com', addr = 'a+b@example.com'}}, {'"a"@example.com', {user = 'a', domain = 'example.com', addr = '"a"@example.com'}}, + {'"a+b"@example.com', {user = 'a+b', domain = 'example.com', addr = '"a+b"@example.com'}}, } each(function(case) @@ -48,9 +49,8 @@ context("SMTP address check functions", function() local str = ffi.string(st.addr, st.addr_len) assert_equal(str, ex) end - end, case[1]) + end, case[2]) ffi.C.rspamd_email_address_unref(st) end, cases_valid) end) - end) |