diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1998-07-06 21:01:59 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1998-07-06 21:01:59 (GMT) |
commit | 650e88756c4d81f819141d28e9239fbb6446ed30 (patch) | |
tree | b072d230ee7c60c7ab3548e04d291f81b8c1ceda /test/dsets.c | |
parent | 43f13aeca28a722d6436d43dcd84a59918dc0950 (diff) | |
download | hdf5-650e88756c4d81f819141d28e9239fbb6446ed30.zip hdf5-650e88756c4d81f819141d28e9239fbb6446ed30.tar.gz hdf5-650e88756c4d81f819141d28e9239fbb6446ed30.tar.bz2 |
[svn-r452] Changed tests to use the new dataspace API calls. Still need to add tests for
point selections and strides.
Diffstat (limited to 'test/dsets.c')
-rw-r--r-- | test/dsets.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/dsets.c b/test/dsets.c index a3c15df..9eccc2d 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -582,7 +582,7 @@ test_compression(hid_t file) points[hs_offset[0]+i][hs_offset[1]+j] = rand (); } } - H5Sset_hyperslab (space, hs_offset, hs_size, NULL); + H5Sselect_hyperslab (space, H5S_SELECT_SET, hs_offset, NULL, hs_size, NULL); status = H5Dwrite (dataset, H5T_NATIVE_INT, space, space, xfer, points); if (status<0) goto error; @@ -599,6 +599,8 @@ test_compression(hid_t file) printf(" At index %lu,%lu\n", (unsigned long)(hs_offset[0]+i), (unsigned long)(hs_offset[1]+j)); + printf(" At original: %d\n", (int)points[hs_offset[0]+i][hs_offset[1]+j]); + printf(" At returned: %d\n", (int)check[hs_offset[0]+i][hs_offset[1]+j]); goto error; } } |