cvs: pear /PHP_Compat/tests array-chunk_simple.phpt

From: Date: Sat, 12 Jun 2004 07:09:33 +0000
Subject: cvs: pear /PHP_Compat/tests array-chunk_simple.phpt
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-20548@lists.php.net to get a copy of this message
aidan Sat Jun 12 03:09:33 2004 EDT Modified files: /pear/PHP_Compat/tests array-chunk_simple.phpt Log: Checked with other chunk sizes http://cvs.php.net/diff.php/pear/PHP_Compat/tests/array-chunk_simple.phpt?r1=1.3&r2=1.4&ty=u Index: pear/PHP_Compat/tests/array-chunk_simple.phpt diff -u pear/PHP_Compat/tests/array-chunk_simple.phpt:1.3 pear/PHP_Compat/tests/array-chunk_simple.phpt:1.4 --- pear/PHP_Compat/tests/array-chunk_simple.phpt:1.3 Thu Jun 10 08:40:15 2004 +++ pear/PHP_Compat/tests/array-chunk_simple.phpt Sat Jun 12 03:09:33 2004 @@ -10,6 +10,14 @@ $input_array = array(2 => 'a', 3 => 'b', 4 => 'c', 5 => 'd', 6 => 'e'); print_r(array_chunk($input_array, 2)); print_r(array_chunk($input_array, 2, true)); +print_r(array_chunk($input_array, 3)); +print_r(array_chunk($input_array, 3, true)); +print_r(array_chunk($input_array, 4)); +print_r(array_chunk($input_array, 4, true)); +print_r(array_chunk($input_array, 5)); +print_r(array_chunk($input_array, 5, true)); +print_r(array_chunk($input_array, 6)); +print_r(array_chunk($input_array, 6, true)); ?> --EXPECT-- Array @@ -48,6 +56,118 @@ [2] => Array ( + [6] => e + ) + +) +Array +( + [0] => Array + ( + [0] => a + [1] => b + [2] => c + ) + + [1] => Array + ( + [0] => d + [1] => e + ) + +) +Array +( + [0] => Array + ( + [2] => a + [3] => b + [4] => c + ) + + [1] => Array + ( + [5] => d + [6] => e + ) + +) +Array +( + [0] => Array + ( + [0] => a + [1] => b + [2] => c + [3] => d + ) + + [1] => Array + ( + [0] => e + ) + +) +Array +( + [0] => Array + ( + [2] => a + [3] => b + [4] => c + [5] => d + ) + + [1] => Array + ( + [6] => e + ) + +) +Array +( + [0] => Array + ( + [0] => a + [1] => b + [2] => c + [3] => d + [4] => e + ) + +) +Array +( + [0] => Array + ( + [2] => a + [3] => b + [4] => c + [5] => d + [6] => e + ) + +) +Array +( + [0] => Array + ( + [0] => a + [1] => b + [2] => c + [3] => d + [4] => e + ) + +) +Array +( + [0] => Array + ( + [2] => a + [3] => b + [4] => c + [5] => d [6] => e )

« previous php.pear.cvs (#20548) next »