summaryrefslogtreecommitdiff
path: root/tests/it.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/it.t')
-rwxr-xr-xtests/it.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/it.t b/tests/it.t
index b5b7705..74ac57a 100755
--- a/tests/it.t
+++ b/tests/it.t
@@ -316,6 +316,8 @@ setlocale(LC_CTYPE, $oldlocale);
ini_set('default_charset', $oldcharset); # end of tests that must run with specific charset
# it::cidr_match tests
+is(it::cidr_match('192.168.2.3', '192.168.2.5'), false, "cidr_match full IP no match no mask");
+is(it::cidr_match('192.168.2.3', '192.168.2.3'), true, "cidr_match full IP match no mask");
is(it::cidr_match('192.168.2.3', '192.168.2.5/32'), false, "cidr_match full IP no match");
is(it::cidr_match('192.168.2.5', '192.168.2.5/32'), true, "cidr_match full IP match");
is(it::cidr_match('192.168.1.1', '192.168.42.0/24'), false, "cidr_match no match");