diff options
Diffstat (limited to 'c++/test/h5cpputil.cpp')
-rw-r--r-- | c++/test/h5cpputil.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/c++/test/h5cpputil.cpp b/c++/test/h5cpputil.cpp index 85ba2d2..e9baf67 100644 --- a/c++/test/h5cpputil.cpp +++ b/c++/test/h5cpputil.cpp @@ -71,3 +71,20 @@ int test_report( int nerrors, const string& testname ) return 0; } } + +template <class Type1, class Type2> + void verify_val1(Type1 x, Type2 value, const char* message) +{ + if (GetTestVerbosity()>=VERBO_HI) + { + print_func(" Call to routine: %15s at line %4d in %s had value \ + %ld \n", (where), (int)__LINE__, __FILE__, (long)(x)); + } + if (x != value) + { + TestErrPrintf("*** UNEXPECTED VALUE from %s should be %s, but is %s \ + at line %4d in %s\n", where, val, x, (int)__LINE__, __FILE__); + H5Eprint (stdout); + } +} + |