cvs: php4 /ext/standard/tests/general_functions 001.phpt
| From: | Ilia Alshanetsky | Date: | Mon, 14 Oct 2002 16:31:56 +0000 |
| Subject: | cvs: php4 /ext/standard/tests/general_functions 001.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14919@lists.php.net to get a copy of this message | ||
iliaa Mon Oct 14 12:31:56 2002 EDT
Modified files:
/php4/ext/standard/tests/general_functions 001.phpt
Log:
Added float printing tests.
Index: php4/ext/standard/tests/general_functions/001.phpt
diff -u php4/ext/standard/tests/general_functions/001.phpt:1.1
php4/ext/standard/tests/general_functions/001.phpt:1.2
--- php4/ext/standard/tests/general_functions/001.phpt:1.1 Sun Aug 27 15:45:58 2000
+++ php4/ext/standard/tests/general_functions/001.phpt Mon Oct 14 12:31:56 2002
@@ -46,6 +46,8 @@
echo("failed!\n");
}
+echo sprintf("%.2f\n", "99.00");
+echo sprintf("%.2f\n", 99.00);
?>
--EXPECT--
sprintf string truncate test: passed
@@ -53,3 +55,5 @@
sprintf octal and hex test: passed
sprintf octal binary test: passed
sprintf float test: passed
+99.00
+99.00