Commit Graph

81 Commits

Author SHA1 Message Date
Martin Jansen
2ce1fd71ea Fixed two failing tests that were caused by arbitrarily chosen
but apparently bogus upper resp. lower limits for mt_rand().
2011-05-14 20:29:46 +00:00
Ilia Alshanetsky
7ab1a74f49 Additional fix for bug #52550 & fix test & warning from previous fixes 2010-08-08 15:45:02 +00:00
Rasmus Lerdorf
5f962f0e38 Oops, didn't mean to remove the -0 here 2009-08-10 23:18:07 +00:00
Rasmus Lerdorf
d02332b43f Skip this test on osx because ceil(-0.5) doesn't return -0 like
everywhere else because of weird optimizations.
2009-08-09 05:16:17 +00:00
andy wharmby
c731b2287f Fix typo in test 2009-06-16 11:37:13 +00:00
andy wharmby
1386f796d2 New 64 bit math tests. Tested on Windows, Linux and Linux 64 bit. Tests authored by Dave Kelsey 2009-06-11 21:17:00 +00:00
Matt Wilmas
a80be6827d MFH: Fixed tests again after double->long conversion change (to match 5.2) 2009-06-05 17:15:33 +00:00
Matt Wilmas
26cde1ee2f MFH: Updated tests after double->long conversion change (basically to match 5.2)
# Let me know about other failing tests I missed
2009-06-04 18:25:06 +00:00
andy wharmby
84ca63c1b3 New math tests. Tested on Windows, Linux and Linux 64 bit 2009-01-12 17:56:28 +00:00
andy wharmby
f4af0b3f39 New math tests. Tested on Windows, Linux and Linux 64 bit 2009-01-12 14:30:52 +00:00
andy wharmby
a7bdc76551 New PHPT tests for math functions. Tested on Windows, Linux and Linux 64 bit. 2009-01-08 21:20:11 +00:00
Christian Seiler
2e32354456 - MFH: Implemented http://wiki.php.net/rfc/rounding 2008-12-02 16:27:15 +00:00
Antony Dovgal
53a957e5f8 MFH: fix bug #45712 ($something == NaN returns true with 5.3, false with 5.2.*) 2008-08-07 08:36:24 +00:00
Jani Taskinen
a032e1a514 MFH:- Add test for bug #45712 2008-08-05 12:36:47 +00:00
Jani Taskinen
12c066136b MFH: Fix test (bug #44985) 2008-07-23 14:15:19 +00:00
Kalle Sommer Nielsen
f61731874a Merge PHP_5_3 - Implemented Windows support for asinh(), acosh(), atanh(), log1p() and expm1()
[DOC] Merge_5_3
2008-05-05 07:29:41 +00:00
Felipe Pena
9324869ef5 Fix tests (new error message for void parameters) 2008-03-10 22:17:59 +00:00
Felipe Pena
d44f4cb17b Fix test (new parameter parsing) 2008-02-21 17:47:33 +00:00
Zoe Slattery
5932b49990 Fixing 44092 2008-02-12 07:15:40 +00:00
Zoe Slattery
a6fe8d8ca7 Fixing 32 bit specific 2008-02-06 09:36:58 +00:00
Zoe Slattery
a111cabedc Tests for assorted Maths functions 2008-02-06 08:44:24 +00:00
Antony Dovgal
b4b0816578 fix test, add 64bit version 2008-02-01 23:19:16 +00:00
Zoe Slattery
84be2df52a A few new tests for math functions - Note the "constants" test will fail on Windows - Bug 42143. 2008-02-01 17:21:18 +00:00
Zoe Slattery
1e29793386 Removing superfluous --INI-- section 2008-01-30 17:50:38 +00:00
Zoe Slattery
b78b25a336 Test cases for sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, asinh, acosh, atanh. 2007-09-04 09:01:02 +00:00
Antony Dovgal
3a46e8ab1f fix tests 2007-05-07 22:30:16 +00:00
Antony Dovgal
66859a74de fix tests 2007-04-26 23:30:00 +00:00
Hannes Magnusson
b3a914aca8 Fix test (bug#39097) 2006-10-15 13:43:45 +00:00
Hannes Magnusson
2d3056e94f MFH:
- Fixed bug #33895 (missing math constants).
 - Remove M_PI from math.c (its defined in php_math.h)
2006-08-27 19:14:43 +00:00
Antony Dovgal
8a58105f42 MFH: use set_time_limit(), this test takes forever on AIX 2006-03-22 19:27:47 +00:00
foobar
3982f722c2 Skip test on solaris 2005-08-05 09:19:43 +00:00
Andrey Hristov
0e459321bf move math_standard_deviation and math_variance to the stats PECL extension 2005-05-13 10:11:19 +00:00
Andrey Hristov
0c268fa0f7 fix the test too 2005-05-10 15:27:49 +00:00
Andrey Hristov
2c0959689b add possibility to calculate the standard deviation and the variance
on a sample - the formulae are slightly different.
2005-05-02 12:29:38 +00:00
Andrey Hristov
7a4eb25870 add also math_variance() which uses the same calculation as math_std_dev() 2005-05-02 12:12:04 +00:00
Andrey Hristov
6141c5690d fix division by zero. throw an warning if the array is empty. 2005-05-02 11:01:14 +00:00
Andrey Hristov
fb0c19da1c add math_std_dev() 2005-05-02 09:17:49 +00:00
foobar
32d86482cc update test to include negative floats as strings too 2005-01-10 16:00:08 +00:00
Magnus M��tt�
774a978ea9 Fix test so it doesn't hang make test on HP-UX. 2004-12-21 04:34:22 +00:00
Ilia Alshanetsky
cc17322c14 MFB: test fix. 2004-12-14 17:43:53 +00:00
Derick Rethans
b6f9b5c693 - Added testcase for bug #30695 2004-11-29 10:15:03 +00:00
foobar
36a76f403a Test for bug #30069 2004-09-15 13:54:16 +00:00
Marcus Boerger
29cfd6d24f - Remove unused blocks 2004-05-19 08:56:50 +00:00
Marcus Boerger
d94136fc30 - Remove unused blocks 2004-05-19 08:45:46 +00:00
Ilia Alshanetsky
91e9545f4f Fixed bug #28228 (number_format() does not allow empty decimal separator). 2004-04-30 13:26:01 +00:00
Marcus Boerger
bc0373b880 Portable solution for bug #27646 that works correct on Windows, too 2004-03-27 00:50:41 +00:00
Marcus Boerger
3450ed948f -Make NAN and INF more portable (atof() doesn't work on MSVC.6 for example)
-Change test to use constants without prior conversion
2004-03-25 22:36:36 +00:00
Marcus Boerger
fdcff80c16 - Allow negative infinity
- Register missing constants, they work anyway but cause an E_NOTICE
# generation by atof() should be portable enough (afaik)
2004-03-23 22:30:25 +00:00
Ilia Alshanetsky
2a58fb80e7 Fixed Bug #25694 (round() and number_format() give inconsistent results). 2003-11-18 02:50:41 +00:00
foobar
3462761d2b typo 2003-09-26 09:56:24 +00:00