[Cs-content-commits] SF.net SVN: cs-content:[450] trunk/1.0/tests/testOfCSFileSystem.php
PHP Templating & Includes System
Brought to you by:
crazedsanity
From: <cra...@us...> - 2009-08-20 14:29:32
|
Revision: 450 http://cs-content.svn.sourceforge.net/cs-content/?rev=450&view=rev Author: crazedsanity Date: 2009-08-20 14:29:20 +0000 (Thu, 20 Aug 2009) Log Message: ----------- Fix test so it doesn't check a line that is known to be blank... /tests/testOfCSFileSystem.php: * test_basic_rw(): -- set the random line to have a max of the actual number of lines -1 (prevents an off-by-one error). Modified Paths: -------------- trunk/1.0/tests/testOfCSFileSystem.php Modified: trunk/1.0/tests/testOfCSFileSystem.php =================================================================== --- trunk/1.0/tests/testOfCSFileSystem.php 2009-08-19 20:14:05 UTC (rev 449) +++ trunk/1.0/tests/testOfCSFileSystem.php 2009-08-20 14:29:20 UTC (rev 450) @@ -155,7 +155,7 @@ $linesToTest = 100; for($i=0;$i<$linesToTest;$i++) { - $randomLine = rand(0, $actualNum); + $randomLine = rand(0, ($actualNum -1)); $this->writer->go_to_line($randomLine); $lineContents = $this->writer->get_next_line(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |