Commit Graph

69 Commits

Author SHA1 Message Date
Jani Taskinen
5e1f4665e3 Fix test (bug #44985) 2008-07-23 14:15:00 +00:00
Steph Fox
5078c3a00a - killed off UEXPECT 2008-05-27 07:38:00 +00:00
Kalle Sommer Nielsen
f914d50dd6 Implemented Windows support for asinh(), acosh(), atanh(), log1p() and expm1() + removed Windows check on tests
[DOC] Windows support for asinh(), acosh(), atanh(), log1p() and expm1()
2008-05-05 06:28:03 +00:00
Felipe Pena
748677148c Fixed tests 2008-02-28 15:28:00 +00:00
Zoe Slattery
87a60ef453 Fixing 32 bit specific 2008-02-06 09:28:01 +00:00
Zoe Slattery
4da92843b9 Tests for assorted Maths functions 2008-02-06 08:39:23 +00:00
Antony Dovgal
de10394d60 fix test, add 64bit version 2008-02-01 23:18:53 +00:00
Zoe Slattery
bd8678289b A few new tests for math functions 2008-02-01 17:16:40 +00:00
Zoe Slattery
76022e67d8 Removing superfluous --INI-- section 2008-01-30 17:55:12 +00:00
Zoe Slattery
8e59bf05cb Test cases for sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, asinh, acosh, atanh. 2007-09-04 11:18:35 +00:00
Dmitry Stogov
204f671029 Fixed tests 2007-07-09 11:38:34 +00:00
Antony Dovgal
2d087e6deb fix tests 2007-05-07 22:33:39 +00:00
Antony Dovgal
419c5b3db1 fix tests
add test for yet not merged fix
2007-04-26 23:42:36 +00:00
Hannes Magnusson
9116acf89f Fix test 2006-10-15 13:44:41 +00:00
Hannes Magnusson
089b2ab93f Register missing math constants (been missing since 4.0.2!)
Remove M_PI from math.c (its defined in php_math.h)
2006-08-27 18:20:39 +00:00
Antony Dovgal
3d0e1456e4 fix test 2006-06-20 19:12:12 +00:00
Antony Dovgal
a4c6a19335 use set_time_limit(), this test takes forever on AIX 2006-03-22 19:27:28 +00:00
Dmitry Stogov
227295a4f1 Unicode stuff is changed according to decision maden on PDM.
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
2006-01-17 12:18:53 +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
foobar
ef1c2d59a4 Test case for bug #25665 2003-09-26 09:55:56 +00:00
Ilia Alshanetsky
c23609efa7 Fixed paths in various tests. In certain conditions usage of partial file
paths results in test failures.
2003-08-18 22:57:49 +00:00
Ilia Alshanetsky
ac41c5db23 Added/improved tests for bugs 24142, 24063, 24951, 24980 2003-08-09 16:44:33 +00:00
Sterling Hughes
1ed8e46273 according to the notes in the bugs database, this is the correct result.
this result is also the same one given in 4.3.2 and 5.0
2003-06-26 03:21:45 +00:00
foobar
9aa14246d9 Fixed the expected result 2003-06-16 19:59:27 +00:00
Derick Rethans
cd5fd7eed7 - Added test for bug #24142 2003-06-16 17:50:07 +00:00
Moriyoshi Koizumi
6fc22aa5d9 Test name formatting 2003-01-23 19:07:25 +00:00
Wez Furlong
d8fbd1acef Fix Bug #21523 - number_format could cause a memory allocation for a
negative memory size in situations where the sprintf implementation of the
host system generated less decimal places than were requested.

Resolved this issue by making number_format examine the string returned
by spprintf and have it pad to the correct number of decimal places.

Added a test-case based on the bug report; the length of decimal places
required to trigger this bug is sprintf implementation dependent; as the
implementation is now using spprintf (provided by PHP), that number is
78 digits (NDIG - 2).

# I played with the idea of enhancing sprintf to do the equivalent, but
# it was too much effort considering that the precision of floats/doubles
# is not good enough to warrant it.

# This fix could do with some QA from someone else to make sure there are
# no memory bounds problems and then MFH it to PHP_4_3
2003-01-09 15:44:49 +00:00
Marcus Boerger
24726b0c64 Conversion fix by Michael Mauch 2002-11-17 09:27:48 +00:00
Jason Greene
84bd2901c4 Add the ability to take the logarithm of any base by adding a base parameter
to log()
Added regression tests for the new form
2002-11-11 05:21:35 +00:00
Jason Greene
9e2a312f2e add test function for log()
# It is difficult to test an approximation of an approximation, but I
# believe this test should be close enough to verify the function is working
# correctly.
2002-11-11 03:45:04 +00:00
Sean Bright
114dff39ce Add missing ?> 2002-10-04 02:34:15 +00:00