mediawiki-extensions-AbuseF.../tests/parserTests/ip-in-range.t
Daimona Eaytoy 4a24c174f2 Fix a test for IPUtils 2.0.0
0.0.0.0/0 is not a valid range.

Bug: T218074
Change-Id: I562fefe66c0b692a99f546ca2d4c833dd508272a
2020-03-21 16:49:44 +00:00

5 lines
218 B
Perl

ip_in_range( '12.34.56.78', '12.34.56.0/24' ) &
ip_in_range( '12.34.56.78', '12.34.0.0/16' ) &
ip_in_range( '12.34.56.78', '12.0.0.0/8' ) &
ip_in_range( '1.1.1.1', '1.1.1.1/32' ) &
ip_in_range( '1.1.1.1', '0.0.0.0/1' )