xref: /PHP-7.1/ext/bcmath/tests/bug46781.phpt (revision 9aa6898b)
1--TEST--
2Bug #46781 (BC math handles minus zero incorrectly)
3--SKIPIF--
4<?php
5if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
6?>
7--FILE--
8<?php
9var_dump(bcadd('-0.0', '-0.0', 1));
10var_dump(bccomp('-0.0', '0', 1));
11?>
12===DONE===
13--EXPECT--
14string(3) "0.0"
15int(0)
16===DONE===
17