summaryrefslogtreecommitdiffstats
path: root/hl/test/test_ds.c
diff options
context:
space:
mode:
authorRobert E. McGrath <mcgrath@ncsa.uiuc.edu>2005-02-25 21:43:03 (GMT)
committerRobert E. McGrath <mcgrath@ncsa.uiuc.edu>2005-02-25 21:43:03 (GMT)
commita5b452c417ce55b6f00725b29a26183eb5562ecc (patch)
tree8b771272cfeae39b5f0336af69ebf476a1fd1ad9 /hl/test/test_ds.c
parent82ae8ac4e0ec0929e432c99361e68f5f60cb5553 (diff)
downloadhdf5-a5b452c417ce55b6f00725b29a26183eb5562ecc.zip
hdf5-a5b452c417ce55b6f00725b29a26183eb5562ecc.tar.gz
hdf5-a5b452c417ce55b6f00725b29a26183eb5562ecc.tar.bz2
[svn-r10090] Purpose:
change Description: Minor changes to Dimension Scale API, to bring into alignment with specification. Solution: Platforms tested: verbena,shanti, copper64 Misc. update:
Diffstat (limited to 'hl/test/test_ds.c')
-rw-r--r--hl/test/test_ds.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/hl/test/test_ds.c b/hl/test/test_ds.c
index 52a891f..501aa35 100644
--- a/hl/test/test_ds.c
+++ b/hl/test/test_ds.c
@@ -333,13 +333,13 @@ static int test_simple(void)
goto out;
/* verify that "dset_a" has 1 dimension scale at DIM 0 */
- if (H5DSget_nscales(did,0,&nscales)<0)
+ if ((nscales = H5DSget_num_scales(did,0))<0)
goto out;
if (nscales!=2)
goto out;
/* verify that "dset_a" has 3 dimension scales at DIM 1 */
- if (H5DSget_nscales(did,1,&nscales)<0)
+ if ((nscales = H5DSget_num_scales(did,1))<0)
goto out;
if (nscales!=3)
goto out;
@@ -388,13 +388,13 @@ static int test_simple(void)
goto out;
/* verify that "dset_b" has 1 dimension scale at DIM 0 */
- if (H5DSget_nscales(did,0,&nscales)<0)
+ if ((nscales = H5DSget_num_scales(did,0))<0)
goto out;
if (nscales!=1)
goto out;
/* verify that "dset_b" has 0 dimension scales at DIM 1 */
- if (H5DSget_nscales(did,1,&nscales)<0)
+ if ((nscales = H5DSget_num_scales(did,1))<0)
goto out;
if (nscales!=0)
goto out;
@@ -487,12 +487,12 @@ static int test_simple(void)
if ((did = H5Dopen(fid,"dset_c"))<0)
goto out;
/* verify that "dset_c" has 1 dimension scale at DIM 0 */
- if (H5DSget_nscales(did,0,&nscales)<0)
+ if ((nscales = H5DSget_num_scales(did,0))<0)
goto out;
if (nscales!=1)
goto out;
/* verify that "dset_c" has 3 dimension scales at DIM 1 */
- if (H5DSget_nscales(did,1,&nscales)<0)
+ if ((nscales = H5DSget_num_scales(did,1))<0)
goto out;
if (nscales!=3)
goto out;
@@ -532,7 +532,7 @@ static int test_simple(void)
if ((did = H5Dopen(fid,"dset_c"))<0)
goto out;
/* verify that "dset_c" has 2 dimension scales at DIM 1 */
- if (H5DSget_nscales(did,1,&nscales)<0)
+ if ((nscales = H5DSget_num_scales(did,1))<0)
goto out;
if (nscales!=2)
goto out;
@@ -572,7 +572,7 @@ static int test_simple(void)
if ((did = H5Dopen(fid,"dset_c"))<0)
goto out;
/* verify that "dset_c" has 1 dimension scale at DIM 1 */
- if (H5DSget_nscales(did,1,&nscales)<0)
+ if ((nscales = H5DSget_num_scales(did,1))<0)
goto out;
if (nscales!=1)
goto out;
@@ -612,7 +612,7 @@ static int test_simple(void)
if ((did = H5Dopen(fid,"dset_c"))<0)
goto out;
/* verify that "dset_c" has 1 dimension scale at DIM 1 */
- if (H5DSget_nscales(did,1,&nscales)<0)
+ if ((nscales = H5DSget_num_scales(did,1))<0)
goto out;
if (nscales!=0)
goto out;
@@ -731,7 +731,7 @@ static int test_simple(void)
goto out;
/* verify that "ds_d_1" has only 1 scale at DIM0 */
- if (H5DSget_nscales(did,DIM0,&nscales)<0)
+ if ((nscales = H5DSget_num_scales(did,DIM0))<0)
goto out;
if (nscales!=1)
goto out;
@@ -770,7 +770,7 @@ static int test_simple(void)
goto out;
/* verify that "ds_d_1" has no scale at DIM1 */
- if (H5DSget_nscales(did,DIM1,&nscales)<0)
+ if ((nscales = H5DSget_num_scales(did,DIM1))<0)
goto out;
if (nscales!=0)
goto out;
@@ -805,7 +805,7 @@ static int test_simple(void)
goto out;
/* verify that "ds_d_2" has only 1 scale at DIM1 */
- if (H5DSget_nscales(did,DIM0,&nscales)<0)
+ if ((nscales = H5DSget_num_scales(did,DIM0))<0)
goto out;
if (nscales!=1)
goto out;
@@ -819,7 +819,7 @@ static int test_simple(void)
goto out;
/* verify that "ds_d_2" has only 1 scale at DIM1 */
- if (H5DSget_nscales(did,DIM0,&nscales)<0)
+ if ((nscales = H5DSget_num_scales(did,DIM0))<0)
goto out;
if (nscales!=1)
goto out;