diff options
Diffstat (limited to 'test/API/H5_api_test_util.c')
-rw-r--r-- | test/API/H5_api_test_util.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/API/H5_api_test_util.c b/test/API/H5_api_test_util.c index d0194f7..41640b4 100644 --- a/test/API/H5_api_test_util.c +++ b/test/API/H5_api_test_util.c @@ -44,7 +44,7 @@ /* The number of predefined floating point types in HDF5 */ -#define NUM_PREDEFINED_FLOAT_TYPES 4 +#define NUM_PREDEFINED_FLOAT_TYPES 6 /* The maximum number of members allowed in an HDF5 compound type, as * generated by the generate_random_datatype() function, for ease of @@ -296,15 +296,21 @@ generate_random_datatype_float(H5T_class_t H5_ATTR_UNUSED parent_class, bool H5_ switch (rand() % NUM_PREDEFINED_FLOAT_TYPES) { case 0: - type_to_copy = H5T_IEEE_F32BE; + type_to_copy = H5T_IEEE_F16BE; break; case 1: - type_to_copy = H5T_IEEE_F32LE; + type_to_copy = H5T_IEEE_F16LE; break; case 2: - type_to_copy = H5T_IEEE_F64BE; + type_to_copy = H5T_IEEE_F32BE; break; case 3: + type_to_copy = H5T_IEEE_F32LE; + break; + case 4: + type_to_copy = H5T_IEEE_F64BE; + break; + case 5: type_to_copy = H5T_IEEE_F64LE; break; |