diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-05-05 20:06:22 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-05-05 20:06:22 (GMT) |
commit | 26d880217ba085053abb0e26be737b6eb35e6c96 (patch) | |
tree | a08dcbd55bfcb18cb46152e1d99527e66f2fc312 /tools/h5dump/testh5dump.sh.in | |
parent | 5bd2405c11837865b6d7c54e30933dbc0b43c938 (diff) | |
download | hdf5-26d880217ba085053abb0e26be737b6eb35e6c96.zip hdf5-26d880217ba085053abb0e26be737b6eb35e6c96.tar.gz hdf5-26d880217ba085053abb0e26be737b6eb35e6c96.tar.bz2 |
[svn-r14934] Add a test for the floating point user defined printf format
Usage is
-m T, --format=T
Where T - is a string containing the floating point format, e.g '%.3f'
The test consists of writing a number with 7 fractional digits (default precision display of %f is 6 digits) and have the 7 digits displayed with
-m %.7f fpformat.h5
Tested: windows, linux, solaris
Note: the output file was generated in linux, it may be possible that platforms other than the ones tested have a different representation of the number
Diffstat (limited to 'tools/h5dump/testh5dump.sh.in')
-rw-r--r-- | tools/h5dump/testh5dump.sh.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/h5dump/testh5dump.sh.in b/tools/h5dump/testh5dump.sh.in index 1a8c18a..034c456 100644 --- a/tools/h5dump/testh5dump.sh.in +++ b/tools/h5dump/testh5dump.sh.in @@ -496,6 +496,10 @@ TOOLTEST torderattr3.ddl -H --sort_by=creation_order --sort_order=ascending tord TOOLTEST torderattr4.ddl -H --sort_by=creation_order --sort_order=descending torderattr.h5 +# tests for floating point user defined printf format +TOOLTEST tfpformat.ddl -m %.7f tfpformat.h5 + + if test $nerrors -eq 0 ; then echo "All $DUMPER tests passed." |