fix tests: removed values that generate diff. output on Linux64

This commit is contained in:
Raghubansh Kumar 2007-11-16 17:06:43 +00:00
parent 117a6d77e1
commit 3f8200fc79
2 changed files with 3 additions and 86 deletions

View File

@ -27,10 +27,7 @@ $various_arrays = array(
// mixed value array with different types of keys // mixed value array with different types of keys
array(1 => .0001, 2 => .0021, -3 => -.01, 4 => -1, 5 => 0, 6 => .09, 7 => 2, -8 => -.9, 9 => 10.6E-2, array(1 => .0001, 2 => .0021, -3 => -.01, 4 => -1, 5 => 0, 6 => .09, 7 => 2, -8 => -.9, 9 => 10.6E-2,
-10 => -10.6E-2, 11 => 33), -10 => -10.6E-2, 11 => 33)
// array keys contains minimum and maximum ranges
array( 2147483647 => 1 , 2147483648 => 2, -2147483647 => 3, -2147483648 => 4, -0 => 5)
); );
// set of possible flag values // set of possible flag values
@ -262,42 +259,4 @@ array(11) {
[-10]=> [-10]=>
float(-0.106) float(-0.106)
} }
-- Iteration 4 --
- With defualt sort flag -
bool(true)
array(4) {
[2147483647]=>
int(1)
[0]=>
int(5)
[-2147483647]=>
int(3)
[-2147483648]=>
int(4)
}
- Sort flag = SORT_REGULAR -
bool(true)
array(4) {
[2147483647]=>
int(1)
[0]=>
int(5)
[-2147483647]=>
int(3)
[-2147483648]=>
int(4)
}
- Sort flag = SORT_NUMERIC -
bool(true)
array(4) {
[2147483647]=>
int(1)
[0]=>
int(5)
[-2147483647]=>
int(3)
[-2147483648]=>
int(4)
}
Done Done

View File

@ -1,5 +1,5 @@
--TEST-- --TEST--
Test ksort() function : usage variations - sort integer/float values (Bug - not raised) Test ksort() function : usage variations - sort integer/float values
--FILE-- --FILE--
<?php <?php
/* Prototype : bool ksort ( array &$array [, int $sort_flags] ) /* Prototype : bool ksort ( array &$array [, int $sort_flags] )
@ -27,11 +27,7 @@ $various_arrays = array(
// mixed value array with different types of keys // mixed value array with different types of keys
array(1 => .0001, 2 => .0021, -3 => -.01, 4 => -1, 5 => 0, 6 => .09, 7 => 2, -8 => -.9, array(1 => .0001, 2 => .0021, -3 => -.01, 4 => -1, 5 => 0, 6 => .09, 7 => 2, -8 => -.9,
9 => 10.6E-2, -10 => -10.6E-2, 11 => 33), 9 => 10.6E-2, -10 => -10.6E-2, 11 => 33)
// array keys contains minimum and maximum ranges
array( 2147483647 => 1 , 2147483648 => 2, -2147483647 => 3, -2147483648 => 4, -0 => 5)
); );
// set of possible flag values // set of possible flag values
@ -263,42 +259,4 @@ array(11) {
[11]=> [11]=>
int(33) int(33)
} }
-- Iteration 4 --
- With defualt sort flag -
bool(true)
array(4) {
[-2147483648]=>
int(4)
[-2147483647]=>
int(3)
[0]=>
int(5)
[2147483647]=>
int(1)
}
- Sort flag = SORT_REGULAR -
bool(true)
array(4) {
[-2147483648]=>
int(4)
[-2147483647]=>
int(3)
[0]=>
int(5)
[2147483647]=>
int(1)
}
- Sort flag = SORT_NUMERIC -
bool(true)
array(4) {
[-2147483648]=>
int(4)
[-2147483647]=>
int(3)
[0]=>
int(5)
[2147483647]=>
int(1)
}
Done Done