summaryrefslogtreecommitdiffstats
path: root/c++/test/ttypes.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2018-07-21 05:40:57 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2018-07-21 05:40:57 (GMT)
commit4f37cdcd36adb1bafcdf9af49b611180a64d157b (patch)
tree9111eecc09e15c8b70dd830ce23797d0e5bf0abf /c++/test/ttypes.cpp
parentdd0a040ec807912b80a9f1779fbf46c65d01cd57 (diff)
downloadhdf5-4f37cdcd36adb1bafcdf9af49b611180a64d157b.zip
hdf5-4f37cdcd36adb1bafcdf9af49b611180a64d157b.tar.gz
hdf5-4f37cdcd36adb1bafcdf9af49b611180a64d157b.tar.bz2
Code improvement
Description: Moved the new H5Object::getInfo member functions to H5Location and made them overloaded with the existing H5Location::getObjinfo. This way is cleaner than the previous approach. Platforms tested: Linux/64 (jelly) Linux/32 (jam) Darwin (osx1010test)
Diffstat (limited to 'c++/test/ttypes.cpp')
-rw-r--r--c++/test/ttypes.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/c++/test/ttypes.cpp b/c++/test/ttypes.cpp
index 6d585bd..0de66d7 100644
--- a/c++/test/ttypes.cpp
+++ b/c++/test/ttypes.cpp
@@ -1097,13 +1097,12 @@ static void test_operators()
verify_val(flttyp == member_inttyp, false, "DataType::operator==", __LINE__, __FILE__);
verify_val(flttyp != member_inttyp, true, "DataType::operator==", __LINE__, __FILE__);
- // Get the NATIVE_LONG member from the compound datatype above
- IntType member_longtyp = cmptyp.getMemberIntType(2);
+ // Get the NATIVE_FLOAT member from the compound datatype above
+ IntType member_flttyp = cmptyp.getMemberIntType(1);
// Test various combinations
- verify_val(inttyp == member_longtyp, false, "DataType::operator==", __LINE__, __FILE__);
- verify_val(flttyp == member_longtyp, false, "DataType::operator==", __LINE__, __FILE__);
- verify_val(flttyp != member_longtyp, true, "DataType::operator==", __LINE__, __FILE__);
+ verify_val(inttyp == member_flttyp, false, "DataType::operator==", __LINE__, __FILE__);
+ verify_val(flttyp != member_flttyp, false, "DataType::operator==", __LINE__, __FILE__);
PASSED();
}