1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 23:48:14 +02:00
Files
archived-php-src/ext/standard/tests/math/pow-operator.phpt
T
2019-03-15 22:55:30 +01:00

22 lines
370 B
PHP

--TEST--
Various pow() tests
--FILE--
<?php
$x = 2;
$x **= 3;
$tests = <<<TESTS
-3 ** 2 === -9
(-3) **2 === 9
2 ** 3 ** 2 === 512
(2 ** 3) ** 2 === 64
$x === 8
TESTS;
echo "On failure, please mail result to php-dev@lists.php.net\n";
include(__DIR__ . '/../../../../tests/quicktester.inc');
--EXPECT--
On failure, please mail result to php-dev@lists.php.net
OK