1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 21:41:22 +02:00
Files
archived-php-src/ext/standard/tests/math/intdiv_64bit.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

15 lines
272 B
PHP

--TEST--
intdiv functionality
--SKIPIF--
<?php
if (PHP_INT_SIZE !== 8) {
die("skip this test is for 64-bit platforms only");
}
?>
--FILE--
<?php
// (int)(PHP_INT_MAX / 3) gives a different result
var_dump(intdiv(PHP_INT_MAX, 3));
?>
--EXPECT--
int(3074457345618258602)