From 41219c6320a4c9744e5a051070fc78c1dd6403dd Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 25 Apr 2016 09:39:50 +0100 Subject: [PATCH] [Test] Improve SMTP address tests --- test/lua/unit/smtp_addr.lua | 4 ++-- 1 file 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) -- 2.39.5