summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMark Kittisopikul <mkitti@users.noreply.github.com>2022-08-07 04:57:41 (GMT)
committerGitHub <noreply@github.com>2022-08-07 04:57:41 (GMT)
commit7127d8912c8fa601d59b4e8ce522eaf149c02344 (patch)
treeb83c86f9c7af27893d30469d117eeeed8b7756ee /test
parent043f66afd22c329104813b61a789af862e5349ac (diff)
downloadhdf5-7127d8912c8fa601d59b4e8ce522eaf149c02344.zip
hdf5-7127d8912c8fa601d59b4e8ce522eaf149c02344.tar.gz
hdf5-7127d8912c8fa601d59b4e8ce522eaf149c02344.tar.bz2
H5Dchunk_iter now passes offsets in units of dataset elements, fix #1419 (#1969)
* H5Dchunk_iter now passes chunk dimension scaled offsets, fix #1419 * Update docs for H5Dchunk_iter, H5Dget_chunk_info* Modified description for `H5Dchunk_iter`, `H5Dget_chunk_info`, and `H5Dget_chunk_info_by_coord` to the following * offset Logical position of the chunk’s first element in units of dataset elements * filter_mask Bitmask indicating the filters used when the chunk was written * size Chunk size in bytes, 0 if the chunk does not exist
Diffstat (limited to 'test')
-rw-r--r--test/chunk_info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/chunk_info.c b/test/chunk_info.c
index 1ba02b0..3fdc77d 100644
--- a/test/chunk_info.c
+++ b/test/chunk_info.c
@@ -1722,9 +1722,9 @@ test_basic_query(hid_t fapl)
if (chunk_infos[0].nbytes != 96)
FAIL_PUTS_ERROR("size mismatch");
- if (chunk_infos[1].offset[0] != 1)
+ if (chunk_infos[1].offset[0] != CHUNK_NX)
FAIL_PUTS_ERROR("offset[0] mismatch");
- if (chunk_infos[1].offset[1] != 1)
+ if (chunk_infos[1].offset[1] != CHUNK_NY)
FAIL_PUTS_ERROR("offset[1] mismatch");
/* Iterate and stop after one iteration */