From 860be31caee9fd58a31cb14fbd3f67ec9c76d344 Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Sun, 5 Aug 2001 18:38:48 +0000 Subject: [PATCH] More tests --- ext/standard/tests/math/001.phpt | 62 +++++++++------ ext/standard/tests/math/pow.phpt | 78 +++++++++---------- ext/standard/tests/strings/trim.phpt | 29 +++++++ .../test_eval.inc => tests/quicktester.inc | 18 ++++- 4 files changed, 123 insertions(+), 64 deletions(-) create mode 100644 ext/standard/tests/strings/trim.phpt rename ext/standard/tests/math/test_eval.inc => tests/quicktester.inc (50%) 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 = <<