summaryrefslogtreecommitdiff
path: root/ext/bcmath/tests/bcadd_variation001.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bcmath/tests/bcadd_variation001.phpt')
-rw-r--r--ext/bcmath/tests/bcadd_variation001.phpt16
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 0000000000..a0a64f6343
--- /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