From: Jeroen van Wolffelaar Date: Sun, 5 Aug 2001 18:38:48 +0000 (+0000) Subject: More tests X-Git-Tag: PRE_ENGINE2_SPLIT~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=860be31caee9fd58a31cb14fbd3f67ec9c76d344;p=php More tests --- diff --git a/ext/standard/tests/math/001.phpt b/ext/standard/tests/math/001.phpt index ccd19dc600..1e3a8217ad 100644 --- a/ext/standard/tests/math/001.phpt +++ b/ext/standard/tests/math/001.phpt @@ -4,28 +4,42 @@ Simple math tests --GET-- --FILE-- ---EXPECT-- -1 -1.5 -1 -1.5 -2147483647 -2147483648 -2147483649 --1 -2 --2 -1 +define('LONG_MAX', is_int(5000000000)? 9223372036854775807 : 0x7FFFFFFF); +define('LONG_MIN', -LONG_MAX - 1); +printf("%d,%d,%d,%d\n",is_int(LONG_MIN ),is_int(LONG_MAX ), + is_int(LONG_MIN-1),is_int(LONG_MAX+1)); + +$tests = <<