commit b3e1ff9: [Test] Add a test case

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Feb 17 22:14:04 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-02-17 21:24:58 +0000
URL: https://github.com/rspamd/rspamd/commit/b3e1ff9e769e62977a3876de339a7319f2b27a4b

[Test] Add a test case
Issue: #4081

---
 test/rspamd_cxx_unit_utils.hxx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/rspamd_cxx_unit_utils.hxx b/test/rspamd_cxx_unit_utils.hxx
index d83af5010..c85315379 100644
--- a/test/rspamd_cxx_unit_utils.hxx
+++ b/test/rspamd_cxx_unit_utils.hxx
@@ -44,6 +44,7 @@ TEST_CASE("rspamd_strip_smtp_comments_inplace")
 			{"ab(trol\\\1lo)c(foo)",   "abc"},
 			{"\\ab(trol\\\1lo)c(foo)", "abc"},
 			{"",                       ""},
+			{"<test_id at example.net> (added by postmaster at example.net)", "<test_id at example.net> "}
 	};
 
 	for (const auto &c : cases) {


More information about the Commits mailing list