diff options
Diffstat (limited to 'test/API')
-rw-r--r-- | test/API/H5_api_dataset_test.c | 10 | ||||
-rw-r--r-- | test/API/H5_api_test_util.c | 14 |
2 files changed, 15 insertions, 9 deletions
diff --git a/test/API/H5_api_dataset_test.c b/test/API/H5_api_dataset_test.c index 0f78dff..4ddde286 100644 --- a/test/API/H5_api_dataset_test.c +++ b/test/API/H5_api_dataset_test.c @@ -1276,11 +1276,11 @@ test_create_dataset_predefined_types(void) hid_t container_group = H5I_INVALID_HID, group_id = H5I_INVALID_HID; hid_t fspace_id = H5I_INVALID_HID; hid_t dset_id = H5I_INVALID_HID; - hid_t predefined_type_test_table[] = {H5T_STD_U8LE, H5T_STD_U8BE, H5T_STD_I8LE, H5T_STD_I8BE, - H5T_STD_U16LE, H5T_STD_U16BE, H5T_STD_I16LE, H5T_STD_I16BE, - H5T_STD_U32LE, H5T_STD_U32BE, H5T_STD_I32LE, H5T_STD_I32BE, - H5T_STD_U64LE, H5T_STD_U64BE, H5T_STD_I64LE, H5T_STD_I64BE, - H5T_IEEE_F32LE, H5T_IEEE_F32BE, H5T_IEEE_F64LE, H5T_IEEE_F64BE}; + hid_t predefined_type_test_table[] = { + H5T_STD_U8LE, H5T_STD_U8BE, H5T_STD_I8LE, H5T_STD_I8BE, H5T_STD_U16LE, H5T_STD_U16BE, + H5T_STD_I16LE, H5T_STD_I16BE, H5T_STD_U32LE, H5T_STD_U32BE, H5T_STD_I32LE, H5T_STD_I32BE, + H5T_STD_U64LE, H5T_STD_U64BE, H5T_STD_I64LE, H5T_STD_I64BE, H5T_IEEE_F16LE, H5T_IEEE_F16BE, + H5T_IEEE_F32LE, H5T_IEEE_F32BE, H5T_IEEE_F64LE, H5T_IEEE_F64BE}; TESTING("dataset creation with predefined datatypes"); 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; |