summaryrefslogtreecommitdiffstats
path: root/c++/test/trefer.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2007-01-26 05:40:17 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2007-01-26 05:40:17 (GMT)
commitfd318bcf1fe96ff30ae83a4a1441d2600f0cf825 (patch)
treec74c83e7815461c4ce8dce5de46c5a60c01d0943 /c++/test/trefer.cpp
parent134352c456b2952f192e74ed3e87fb72a2d9bbd8 (diff)
downloadhdf5-fd318bcf1fe96ff30ae83a4a1441d2600f0cf825.zip
hdf5-fd318bcf1fe96ff30ae83a4a1441d2600f0cf825.tar.gz
hdf5-fd318bcf1fe96ff30ae83a4a1441d2600f0cf825.tar.bz2
[svn-r13201] Purpose: Adding test
Description: Added * tests for some generic datatype operations * tests for compound datatype operations These tests are checked in now to make sure they're safe! They can use some more comments and minor cleanups. Will do very soon. Fixed few minor typos. Platforms tested AIX 5.1 (copper) SunOS 5.8 64-bit (sol) HPUX 11.00 (kelgia)
Diffstat (limited to 'c++/test/trefer.cpp')
-rw-r--r--c++/test/trefer.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/c++/test/trefer.cpp b/c++/test/trefer.cpp
index 9ef6240..19a8a6b 100644
--- a/c++/test/trefer.cpp
+++ b/c++/test/trefer.cpp
@@ -12,13 +12,12 @@
* access to either file, you may request a copy from help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-/***********************************************************
-*
-* Test program: trefer
-*
-* Test the Reference functionality
-*
-*************************************************************/
+/*****************************************************************************
+ FILE
+ trefer.cpp - HDF5 C++ testing the functionalities associated with the C
+ Reference interface (H5R)
+
+ ***************************************************************************/
#ifdef OLD_HEADER_FILENAME
#include <iostream.h>
@@ -38,7 +37,7 @@
#include "H5Cpp.h" // C++ API header file
#ifndef H5_NO_NAMESPACE
-using namespace H5;
+ using namespace H5;
#endif
#include "h5cpputil.h" // C++ utilility header file
@@ -230,7 +229,7 @@ test_reference_obj(void)
// Dereference group object by ctor and using dataset to specify
// location
Group new_group(dataset, &rbuf[2]);
- H5std_string read_comment3 = group.getComment(".", 10);
+ H5std_string read_comment3 = new_group.getComment(".", 10);
verify_val(read_comment3, write_comment, "Group::getComment", __LINE__, __FILE__);
group.close();