Skip to content

Commit fed3b96

Browse files
author
Ilia Alshanetsky
committed
Added float printing tests.
1 parent 64a22c8 commit fed3b96

File tree

1 file changed

+4
-0
lines changed
  • ext/standard/tests/general_functions

1 file changed

+4
-0
lines changed

ext/standard/tests/general_functions/001.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,14 @@ if ($test == "003333.33") {
4646
echo("failed!\n");
4747
}
4848

49+
echo sprintf("%.2f\n", "99.00");
50+
echo sprintf("%.2f\n", 99.00);
4951
?>
5052
--EXPECT--
5153
sprintf string truncate test: passed
5254
sprintf padding and align test: passed
5355
sprintf octal and hex test: passed
5456
sprintf octal binary test: passed
5557
sprintf float test: passed
58+
99.00
59+
99.00

0 commit comments

Comments
 (0)