mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-06 17:20:42 +08:00
[svn-r13512] Correct the typos where some "=="s should be "!="s.
This commit is contained in:
parent
bb18969e79
commit
19dfff8df2
16
test/tmisc.c
16
test/tmisc.c
@ -2462,7 +2462,7 @@ test_misc14(void)
|
||||
/* Check data from first dataset */
|
||||
ret = H5Dread(Dataset1, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata);
|
||||
CHECK(ret, FAIL, "H5Dread");
|
||||
if(DBL_ABS_EQUAL(rdata,data1))
|
||||
if(!DBL_ABS_EQUAL(rdata,data1))
|
||||
TestErrPrintf("Error on line %d: data1!=rdata\n",__LINE__);
|
||||
|
||||
/* Unlink second dataset */
|
||||
@ -2476,7 +2476,7 @@ test_misc14(void)
|
||||
/* Verify the data from dataset #1 */
|
||||
ret = H5Dread(Dataset1, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata);
|
||||
CHECK(ret, FAIL, "H5Dread");
|
||||
if(DBL_ABS_EQUAL(rdata,data1))
|
||||
if(!DBL_ABS_EQUAL(rdata,data1))
|
||||
TestErrPrintf("Error on line %d: data1!=rdata\n",__LINE__);
|
||||
|
||||
/* Close first dataset */
|
||||
@ -2510,7 +2510,7 @@ test_misc14(void)
|
||||
/* Check data from second dataset */
|
||||
ret = H5Dread(Dataset2, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata);
|
||||
CHECK(ret, FAIL, "H5Dread");
|
||||
if(DBL_ABS_EQUAL(rdata,data2))
|
||||
if(!DBL_ABS_EQUAL(rdata,data2))
|
||||
TestErrPrintf("Error on line %d: data2!=rdata\n",__LINE__);
|
||||
|
||||
/* Unlink first dataset */
|
||||
@ -2524,7 +2524,7 @@ test_misc14(void)
|
||||
/* Verify the data from dataset #2 */
|
||||
ret = H5Dread(Dataset2, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata);
|
||||
CHECK(ret, FAIL, "H5Dread");
|
||||
if(DBL_ABS_EQUAL(rdata,data2))
|
||||
if(!DBL_ABS_EQUAL(rdata,data2))
|
||||
TestErrPrintf("Error on line %d: data2!=rdata\n",__LINE__);
|
||||
|
||||
/* Close second dataset */
|
||||
@ -2565,13 +2565,13 @@ test_misc14(void)
|
||||
/* Check data from first dataset */
|
||||
ret = H5Dread(Dataset1, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata);
|
||||
CHECK(ret, FAIL, "H5Dread");
|
||||
if(DBL_ABS_EQUAL(rdata,data1))
|
||||
if(!DBL_ABS_EQUAL(rdata,data1))
|
||||
TestErrPrintf("Error on line %d: data1!=rdata\n",__LINE__);
|
||||
|
||||
/* Check data from third dataset */
|
||||
ret = H5Dread(Dataset3, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata);
|
||||
CHECK(ret, FAIL, "H5Dread");
|
||||
if(DBL_ABS_EQUAL(rdata,data3))
|
||||
if(!DBL_ABS_EQUAL(rdata,data3))
|
||||
TestErrPrintf("Error on line %d: data3!=rdata\n",__LINE__);
|
||||
|
||||
/* Unlink second dataset */
|
||||
@ -2585,13 +2585,13 @@ test_misc14(void)
|
||||
/* Verify the data from dataset #1 */
|
||||
ret = H5Dread(Dataset1, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata);
|
||||
CHECK(ret, FAIL, "H5Dread");
|
||||
if(DBL_ABS_EQUAL(rdata,data1))
|
||||
if(!DBL_ABS_EQUAL(rdata,data1))
|
||||
TestErrPrintf("Error on line %d: data1!=rdata\n",__LINE__);
|
||||
|
||||
/* Verify the data from dataset #3 */
|
||||
ret = H5Dread(Dataset3, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata);
|
||||
CHECK(ret, FAIL, "H5Dread");
|
||||
if(DBL_ABS_EQUAL(rdata,data3))
|
||||
if(!DBL_ABS_EQUAL(rdata,data3))
|
||||
TestErrPrintf("Error on line %d: data3!=rdata\n",__LINE__);
|
||||
|
||||
/* Close first dataset */
|
||||
|
Loading…
x
Reference in New Issue
Block a user