From: Vsevolod Stakhov Date: Wed, 23 Sep 2015 15:13:23 +0000 (+0100) Subject: Add tests for the problematic case in radix trie. X-Git-Tag: 1.0.2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45b3b5ddf56921037e545be8283b43e9af88a9d3;p=thirdparty%2Frspamd.git Add tests for the problematic case in radix trie. --- diff --git a/test/rspamd_radix_test.c b/test/rspamd_radix_test.c index a46f4a3b11..b10184e0a9 100644 --- a/test/rspamd_radix_test.c +++ b/test/rspamd_radix_test.c @@ -72,6 +72,12 @@ struct _tv { {"109.206.26.202", NULL, "12", 0, 0, 0, 0}, {"130.244.233.150", NULL, "0", 0, 0, 0, 0}, + /* Close ip addresses */ + {"1.2.3.1", NULL, "32", 0, 0, 0, 0}, + {"1.2.3.2", NULL, "32", 0, 0, 0, 0}, + {"1.2.3.3", NULL, "32", 0, 0, 0, 0}, + {"1.2.3.4", NULL, "32", 0, 0, 0, 0}, + {NULL, NULL, NULL, 0, 0, 0, 0} };