diff options
author | Jeroen van Wolffelaar <jeroen@php.net> | 2001-08-04 21:40:34 +0000 |
---|---|---|
committer | Jeroen van Wolffelaar <jeroen@php.net> | 2001-08-04 21:40:34 +0000 |
commit | c105f7142fc503277eeb6f42a1faddf3f227d011 (patch) | |
tree | 51c36e41c52ed30aec82ca9b9fc860761cc59f1c | |
parent | fcf57d371dcda2356c9c8ba4de9be47c06fc5636 (diff) | |
download | php-git-c105f7142fc503277eeb6f42a1faddf3f227d011.tar.gz |
Better abs() testing
-rw-r--r-- | ext/standard/tests/math/001.phpt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/standard/tests/math/001.phpt b/ext/standard/tests/math/001.phpt index dee4217342..ccd19dc600 100644 --- a/ext/standard/tests/math/001.phpt +++ b/ext/standard/tests/math/001.phpt @@ -8,6 +8,9 @@ Simple math tests echo abs(-1.5) . "\n"; echo abs("-1") . "\n"; echo abs("-1.5") . "\n"; + echo abs(-2147483647) . "\n"; + echo abs(-2147483648) . "\n"; + echo abs(-2147483649) . "\n"; echo ceil(-1.5) . "\n"; echo ceil(1.5) . "\n"; echo floor(-1.5) . "\n"; @@ -19,6 +22,9 @@ Simple math tests 1.5 1 1.5 +2147483647 +2147483648 +2147483649 -1 2 -2 |