diff options
Diffstat (limited to 'ext/bcmath/tests/bccomp.phpt')
-rw-r--r-- | ext/bcmath/tests/bccomp.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/bcmath/tests/bccomp.phpt b/ext/bcmath/tests/bccomp.phpt new file mode 100644 index 0000000..b2bf9f4 --- /dev/null +++ b/ext/bcmath/tests/bccomp.phpt @@ -0,0 +1,18 @@ +--TEST-- +bccomp() function +--SKIPIF-- +<?php if(!extension_loaded("bcmath")) print "skip"; ?> +--INI-- +bcmath.scale=0 +--FILE-- +<?php +echo bccomp("-1", "5", 4),"\n"; +echo bccomp("1928372132132819737213", "8728932001983192837219398127471"),"\n"; +echo bccomp("1.00000000000000000001", "1", 2),"\n"; +echo bccomp("97321", "2321"),"\n"; +?> +--EXPECT-- +-1 +-1 +0 +1 |