diff options
author | Marcus Boerger <helly@php.net> | 2002-08-21 01:27:56 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-08-21 01:27:56 +0000 |
commit | be1e23cbc93fcfb38146fa7c36c753089f112b0e (patch) | |
tree | 0701fb563e5433aebd32fc7861077459925d9e8c | |
parent | 534a63b5af3561b8c6c6553efddf91fa0e77585e (diff) | |
download | php-git-be1e23cbc93fcfb38146fa7c36c753089f112b0e.tar.gz |
Add var_dump float format test
-rw-r--r-- | ext/standard/tests/general_functions/008.phpt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ext/standard/tests/general_functions/008.phpt b/ext/standard/tests/general_functions/008.phpt new file mode 100644 index 0000000000..a7e5307dc7 --- /dev/null +++ b/ext/standard/tests/general_functions/008.phpt @@ -0,0 +1,40 @@ +--TEST-- +var_dump float test +--INI-- +precision=12 +--FILE-- +<?php +// this checks f,g,G conversion for snprintf/spprintf +var_dump(array(ini_get('precision'),.012,-.012,.12,-.12,1.2,-1.2,12.,-12.,0.000123,.0000123,123456789012,1234567890123,12345678901234567890)); +?> +--EXPECT-- +array(14) { + [0]=> + string(2) "12" + [1]=> + float(0.012) + [2]=> + float(-0.012) + [3]=> + float(0.12) + [4]=> + float(-0.12) + [5]=> + float(1.2) + [6]=> + float(-1.2) + [7]=> + float(12) + [8]=> + float(-12) + [9]=> + float(0.000123) + [10]=> + float(1.23E-5) + [11]=> + float(123456789012) + [12]=> + float(1234567890120) + [13]=> + float(1.23456789012E+19) +}
\ No newline at end of file |