zoe Sun, 30 Aug 2009 11:10:20 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=287895
Log:
bc math tests from testfest 2009
Changed paths:
A php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcdiv_error1.phpt
A php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcdiv_error2.phpt
A php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcmod_error1.phpt
A php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcpowmod_error1.phpt
A php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcpowmod_error2.phpt
A php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcpowmod_error3.phpt
A php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcsqrt_error1.phpt
A php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcdiv_error1.phpt
A php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcdiv_error2.phpt
A php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcmod_error1.phpt
A php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcpowmod_error1.phpt
A php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcpowmod_error2.phpt
A php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcpowmod_error3.phpt
A php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcsqrt_error1.phpt
A php/php-src/trunk/ext/bcmath/tests/bcdiv_error1.phpt
A php/php-src/trunk/ext/bcmath/tests/bcdiv_error2.phpt
A php/php-src/trunk/ext/bcmath/tests/bcmod_error1.phpt
A php/php-src/trunk/ext/bcmath/tests/bcpowmod_error1.phpt
A php/php-src/trunk/ext/bcmath/tests/bcpowmod_error2.phpt
A php/php-src/trunk/ext/bcmath/tests/bcpowmod_error3.phpt
A php/php-src/trunk/ext/bcmath/tests/bcsqrt_error1.phpt
Added: php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcdiv_error1.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcdiv_error1.phpt (rev 0)
+++ php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcdiv_error1.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,12 @@
+--TEST--
+bcdiv — Divide two arbitrary precision numbers
+--CREDITS--
+TestFest2009
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcdiv('10.99', '0');
+?>
+--EXPECTF--
+Warning: bcdiv(): Division by zero in %s.php on line %d
Property changes on: php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcdiv_error1.phpt
___________________________________________________________________
Added: svn:executable
+ *
Added: php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcdiv_error2.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcdiv_error2.phpt (rev 0)
+++ php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcdiv_error2.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcdiv — Divide two arbitrary precision numbers
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcdiv('1', '2', '3', '4');
+?>
+--EXPECTF--
+Warning: Wrong parameter count for bcdiv() in %s.php on line %d
Added: php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcmod_error1.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcmod_error1.phpt (rev 0)
+++ php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcmod_error1.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcmod — Get modulus of an arbitrary precision number
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcmod('1', '2', '3');
+?>
+--EXPECTF--
+Warning: Wrong parameter count for bcmod() in %s.php on line %d
Added: php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcpowmod_error1.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcpowmod_error1.phpt (rev 0)
+++ php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcpowmod_error1.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcpowmod — Raise an arbitrary precision number to another, reduced by a specified modulus
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcpowmod('1');
+?>
+--EXPECTF--
+Warning: bcpowmod() expects at least 3 parameters, 1 given in %s.php on line %d
Property changes on: php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcpowmod_error1.phpt
___________________________________________________________________
Added: svn:executable
+ *
Added: php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcpowmod_error2.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcpowmod_error2.phpt (rev 0)
+++ php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcpowmod_error2.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcpowmod — Raise an arbitrary precision number to another, reduced by a specified modulus
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcpowmod('1', '2');
+?>
+--EXPECTF--
+Warning: bcpowmod() expects at least 3 parameters, 2 given in %s.php on line %d
Property changes on: php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcpowmod_error2.phpt
___________________________________________________________________
Added: svn:executable
+ *
Added: php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcpowmod_error3.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcpowmod_error3.phpt (rev 0)
+++ php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcpowmod_error3.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcpowmod — Raise an arbitrary precision number to another, reduced by a specified modulus
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcpowmod('1', '2', '3', '4', '5');
+?>
+--EXPECTF--
+Warning: bcpowmod() expects at most 4 parameters, 5 given in %s.php on line %d
Added: php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcsqrt_error1.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcsqrt_error1.phpt (rev 0)
+++ php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcsqrt_error1.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcsqrt — Get the square root of an arbitrary precision number
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcsqrt('-9');
+?>
+--EXPECTF--
+Warning: bcsqrt(): Square root of negative number in %s.php on line %d
Property changes on: php/php-src/branches/PHP_5_2/ext/bcmath/tests/bcsqrt_error1.phpt
___________________________________________________________________
Added: svn:executable
+ *
Added: php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcdiv_error1.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcdiv_error1.phpt (rev 0)
+++ php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcdiv_error1.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,12 @@
+--TEST--
+bcdiv — Divide two arbitrary precision numbers
+--CREDITS--
+TestFest2009
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcdiv('10.99', '0');
+?>
+--EXPECTF--
+Warning: bcdiv(): Division by zero in %s.php on line %d
Property changes on: php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcdiv_error1.phpt
___________________________________________________________________
Added: svn:executable
+ *
Added: php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcdiv_error2.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcdiv_error2.phpt (rev 0)
+++ php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcdiv_error2.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcdiv — Divide two arbitrary precision numbers
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcdiv('1', '2', '3', '4');
+?>
+--EXPECTF--
+Warning: bcdiv() expects at most 3 parameters, 4 given in %s.php on line %d
Added: php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcmod_error1.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcmod_error1.phpt (rev 0)
+++ php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcmod_error1.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcmod — Get modulus of an arbitrary precision number
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcmod('1', '2', '3');
+?>
+--EXPECTF--
+Warning: bcmod() expects exactly 2 parameters, 3 given in %s.php on line %d
Added: php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcpowmod_error1.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcpowmod_error1.phpt (rev 0)
+++ php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcpowmod_error1.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcpowmod — Raise an arbitrary precision number to another, reduced by a specified modulus
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcpowmod('1');
+?>
+--EXPECTF--
+Warning: bcpowmod() expects at least 3 parameters, 1 given in %s.php on line %d
Property changes on: php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcpowmod_error1.phpt
___________________________________________________________________
Added: svn:executable
+ *
Added: php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcpowmod_error2.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcpowmod_error2.phpt (rev 0)
+++ php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcpowmod_error2.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcpowmod — Raise an arbitrary precision number to another, reduced by a specified modulus
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcpowmod('1', '2');
+?>
+--EXPECTF--
+Warning: bcpowmod() expects at least 3 parameters, 2 given in %s.php on line %d
Property changes on: php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcpowmod_error2.phpt
___________________________________________________________________
Added: svn:executable
+ *
Added: php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcpowmod_error3.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcpowmod_error3.phpt (rev 0)
+++ php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcpowmod_error3.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcpowmod — Raise an arbitrary precision number to another, reduced by a specified modulus
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcpowmod('1', '2', '3', '4', '5');
+?>
+--EXPECTF--
+Warning: bcpowmod() expects at most 4 parameters, 5 given in %s.php on line %d
Added: php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcsqrt_error1.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcsqrt_error1.phpt (rev 0)
+++ php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcsqrt_error1.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcsqrt — Get the square root of an arbitrary precision number
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcsqrt('-9');
+?>
+--EXPECTF--
+Warning: bcsqrt(): Square root of negative number in %s.php on line %d
Property changes on: php/php-src/branches/PHP_5_3/ext/bcmath/tests/bcsqrt_error1.phpt
___________________________________________________________________
Added: svn:executable
+ *
Added: php/php-src/trunk/ext/bcmath/tests/bcdiv_error1.phpt
===================================================================
--- php/php-src/trunk/ext/bcmath/tests/bcdiv_error1.phpt (rev 0)
+++ php/php-src/trunk/ext/bcmath/tests/bcdiv_error1.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,12 @@
+--TEST--
+bcdiv — Divide two arbitrary precision numbers
+--CREDITS--
+TestFest2009
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcdiv('10.99', '0');
+?>
+--EXPECTF--
+Warning: bcdiv(): Division by zero in %s.php on line %d
Property changes on: php/php-src/trunk/ext/bcmath/tests/bcdiv_error1.phpt
___________________________________________________________________
Added: svn:executable
+ *
Added: php/php-src/trunk/ext/bcmath/tests/bcdiv_error2.phpt
===================================================================
--- php/php-src/trunk/ext/bcmath/tests/bcdiv_error2.phpt (rev 0)
+++ php/php-src/trunk/ext/bcmath/tests/bcdiv_error2.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcdiv — Divide two arbitrary precision numbers
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcdiv('1', '2', '3', '4');
+?>
+--EXPECTF--
+Warning: bcdiv() expects at most 3 parameters, 4 given in %s.php on line %d
Added: php/php-src/trunk/ext/bcmath/tests/bcmod_error1.phpt
===================================================================
--- php/php-src/trunk/ext/bcmath/tests/bcmod_error1.phpt (rev 0)
+++ php/php-src/trunk/ext/bcmath/tests/bcmod_error1.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcmod — Get modulus of an arbitrary precision number
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcmod('1', '2', '3');
+?>
+--EXPECTF--
+Warning: bcmod() expects exactly 2 parameters, 3 given in %s.php on line %d
Added: php/php-src/trunk/ext/bcmath/tests/bcpowmod_error1.phpt
===================================================================
--- php/php-src/trunk/ext/bcmath/tests/bcpowmod_error1.phpt (rev 0)
+++ php/php-src/trunk/ext/bcmath/tests/bcpowmod_error1.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcpowmod — Raise an arbitrary precision number to another, reduced by a specified modulus
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcpowmod('1');
+?>
+--EXPECTF--
+Warning: bcpowmod() expects at least 3 parameters, 1 given in %s.php on line %d
Property changes on: php/php-src/trunk/ext/bcmath/tests/bcpowmod_error1.phpt
___________________________________________________________________
Added: svn:executable
+ *
Added: php/php-src/trunk/ext/bcmath/tests/bcpowmod_error2.phpt
===================================================================
--- php/php-src/trunk/ext/bcmath/tests/bcpowmod_error2.phpt (rev 0)
+++ php/php-src/trunk/ext/bcmath/tests/bcpowmod_error2.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcpowmod — Raise an arbitrary precision number to another, reduced by a specified modulus
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcpowmod('1', '2');
+?>
+--EXPECTF--
+Warning: bcpowmod() expects at least 3 parameters, 2 given in %s.php on line %d
Property changes on: php/php-src/trunk/ext/bcmath/tests/bcpowmod_error2.phpt
___________________________________________________________________
Added: svn:executable
+ *
Added: php/php-src/trunk/ext/bcmath/tests/bcpowmod_error3.phpt
===================================================================
--- php/php-src/trunk/ext/bcmath/tests/bcpowmod_error3.phpt (rev 0)
+++ php/php-src/trunk/ext/bcmath/tests/bcpowmod_error3.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcpowmod — Raise an arbitrary precision number to another, reduced by a specified modulus
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcpowmod('1', '2', '3', '4', '5');
+?>
+--EXPECTF--
+Warning: bcpowmod() expects at most 4 parameters, 5 given in %s.php on line %d
Added: php/php-src/trunk/ext/bcmath/tests/bcsqrt_error1.phpt
===================================================================
--- php/php-src/trunk/ext/bcmath/tests/bcsqrt_error1.phpt (rev 0)
+++ php/php-src/trunk/ext/bcmath/tests/bcsqrt_error1.phpt 2009-08-30 11:10:20 UTC (rev 287895)
@@ -0,0 +1,11 @@
+--TEST--
+bcsqrt — Get the square root of an arbitrary precision number
+--CREDITS--
+Antoni Torrents
[email protected]
+--FILE--
+<?php
+echo bcsqrt('-9');
+?>
+--EXPECTF--
+Warning: bcsqrt(): Square root of negative number in %s.php on line %d
Property changes on: php/php-src/trunk/ext/bcmath/tests/bcsqrt_error1.phpt
___________________________________________________________________
Added: svn:executable
+ *
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php