From: Vsevolod Stakhov Date: Mon, 25 Apr 2016 08:39:50 +0000 (+0100) Subject: [Test] Improve SMTP address tests X-Git-Tag: 1.3.0~642 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=41219c6320a4c9744e5a051070fc78c1dd6403dd;p=rspamd.git [Test] Improve SMTP address tests --- 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)