cvs: php4 /ext/standard/tests/general_functions 001.phpt
| From: | Ilia Alshanetsky | Date: | Tue, 15 Oct 2002 12:08:03 +0000 |
| Subject: | cvs: php4 /ext/standard/tests/general_functions 001.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14935@lists.php.net to get a copy of this message | ||
iliaa Tue Oct 15 08:08:03 2002 EDT
Modified files:
/php4/ext/standard/tests/general_functions 001.phpt
Log:
Added tests for %e & %E
Index: php4/ext/standard/tests/general_functions/001.phpt
diff -u php4/ext/standard/tests/general_functions/001.phpt:1.2
php4/ext/standard/tests/general_functions/001.phpt:1.3
--- php4/ext/standard/tests/general_functions/001.phpt:1.2 Mon Oct 14 12:31:56 2002
+++ php4/ext/standard/tests/general_functions/001.phpt Tue Oct 15 08:08:02 2002
@@ -48,6 +48,12 @@
echo sprintf("%.2f\n", "99.00");
echo sprintf("%.2f\n", 99.00);
+
+echo sprintf("%e\n", 1.234E-18);
+echo sprintf("%e\n", 1.234E+18);
+echo sprintf("%e\n", 9843243.12);
+echo sprintf("%e\n", -9843243.12);
+
?>
--EXPECT--
sprintf string truncate test: passed
@@ -57,3 +63,7 @@
sprintf float test: passed
99.00
99.00
+1.23400e-18
+1.23400e+18
+9.84324e+6
+-9.84324e+6