X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1e4c22a03708968ec011edaf72a55a931a4204e0..620100a5ac943e86e54f81f40dc52f1dd0d61330:/tests-php/Nominatim/NominatimTest.php?ds=sidebyside diff --git a/tests-php/Nominatim/NominatimTest.php b/tests-php/Nominatim/NominatimTest.php index a36c029e..4c5638b1 100644 --- a/tests-php/Nominatim/NominatimTest.php +++ b/tests-php/Nominatim/NominatimTest.php @@ -128,8 +128,10 @@ class NominatimTest extends \PHPUnit_Framework_TestCase // 4 words => 8 sets // 10 words => 511 sets // 15 words => 12911 sets + // 18 words => 65536 sets // 20 words => 169766 sets - // 28 words => 397594 sets + // 22 words => 401930 sets + // 28 words => 3505699 sets (needs more than 4GB via 'phpunit -d memory_limit=' to run) $this->assertEquals( 8, count( getWordSets(array_fill( 0, 4, 'a'),0) ) @@ -137,8 +139,8 @@ class NominatimTest extends \PHPUnit_Framework_TestCase $this->assertEquals( - 8, - count( getWordSets(array_fill( 0, 28, 'a'),0) ) + 65536, + count( getWordSets(array_fill( 0, 18, 'a'),0) ) );