summaryrefslogtreecommitdiff
path: root/ext/bcmath/tests/bcdiv.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bcmath/tests/bcdiv.phpt')
-rw-r--r--ext/bcmath/tests/bcdiv.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/bcmath/tests/bcdiv.phpt b/ext/bcmath/tests/bcdiv.phpt
new file mode 100644
index 0000000..cda1949
--- /dev/null
+++ b/ext/bcmath/tests/bcdiv.phpt
@@ -0,0 +1,18 @@
+--TEST--
+bcdiv() function
+--SKIPIF--
+<?php if(!extension_loaded("bcmath")) print "skip"; ?>
+--INI--
+bcmath.scale=0
+--FILE--
+<?php
+echo bcdiv("1", "2"),"\n";
+echo bcdiv("1", "2", 2),"\n";
+echo bcdiv("-1", "5", 4),"\n";
+echo bcdiv("8728932001983192837219398127471", "1928372132132819737213", 2),"\n";
+?>
+--EXPECT--
+0
+0.50
+-0.2000
+4526580661.75