diff options
Diffstat (limited to 'ext/bcmath/tests/bcadd_variation001.phpt')
-rw-r--r-- | ext/bcmath/tests/bcadd_variation001.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/bcmath/tests/bcadd_variation001.phpt b/ext/bcmath/tests/bcadd_variation001.phpt new file mode 100644 index 000000000..a0a64f634 --- /dev/null +++ b/ext/bcmath/tests/bcadd_variation001.phpt @@ -0,0 +1,16 @@ +--TEST-- +bcadd() with non-integers +--SKIPIF-- +<?php if(!extension_loaded("bcmath")) print "skip"; ?> +--INI-- +bcmath.scale=5 +--FILE-- +<?php +echo bcadd("2.2", "4.3", "2")."\n"; +echo bcadd("2.2", "-7.3", "1")."\n"; +echo bcadd("-4.27", "7.3"); +?> +--EXPECTF-- +6.50 +-5.1 +3.03000
\ No newline at end of file |