From: Aaron Schulz Date: Tue, 16 Nov 2010 18:28:25 +0000 (+0000) Subject: Moved /0 prefix tests to valid...it just means "everything" X-Git-Tag: 1.31.0-rc.0~33850 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/message.php?a=commitdiff_plain;h=544115b6f434377a146ddb388dee7672ae0d9a96;p=lhc%2Fweb%2Fwiklou.git Moved /0 prefix tests to valid...it just means "everything" --- diff --git a/maintenance/tests/phpunit/includes/IPTest.php b/maintenance/tests/phpunit/includes/IPTest.php index 7d895b9aca..2158e50daf 100644 --- a/maintenance/tests/phpunit/includes/IPTest.php +++ b/maintenance/tests/phpunit/includes/IPTest.php @@ -165,11 +165,13 @@ class IPTest extends PHPUnit_Framework_TestCase { '16.17.184.1/24', '30.242.52.14/1', '10.232.52.13/8', + '30.242.52.14/0', '::e:f:2001/96', '::c:f:2001/128', '::10:f:2001/70', '::fe:f:2001/1', '::6d:f:2001/8', + '::fe:f:2001/0', ); foreach ( $valid as $i ) { $this->assertTrue( IP::isValidBlock( $i ), "$i is a valid IP block" ); @@ -182,14 +184,12 @@ class IPTest extends PHPUnit_Framework_TestCase { '116.17.184.5/33', '0.17.184.5/130', '16.17.184.1/-1', - '30.242.52.14/0', '10.232.52.13/*', '7.232.52.13/ab', '11.232.52.13/', '::e:f:2001/129', '::c:f:2001/228', '::10:f:2001/-1', - '::fe:f:2001/0', '::6d:f:2001/*', '::86:f:2001/ab', '::23:f:2001/',