[MOAB-dev] r1679 - MOAB/trunk
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Fri Mar 21 17:19:08 CDT 2008
Author: kraftche
Date: 2008-03-21 17:19:08 -0500 (Fri, 21 Mar 2008)
New Revision: 1679
Modified:
MOAB/trunk/TestUtil.hpp
Log:
add missing includes
Modified: MOAB/trunk/TestUtil.hpp
===================================================================
--- MOAB/trunk/TestUtil.hpp 2008-03-21 22:03:33 UTC (rev 1678)
+++ MOAB/trunk/TestUtil.hpp 2008-03-21 22:19:08 UTC (rev 1679)
@@ -57,6 +57,8 @@
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
+#include <string>
/***************************************************************************************
* Define What to do when a test fails.
@@ -320,6 +322,12 @@
void check_equal( void* A, void* B, const char* sA, const char* sB, int line, const char* file )
{ EQUAL_TEST_IMPL( A == B, p ) }
+void check_equal( const char* A, const char* B, const char* sA, const char* sB, int line, const char* file )
+ { EQUAL_TEST_IMPL( !strcmp((A),(B)), s ) }
+
+void check_equal( const std::string& A, const std::string& B, const char* sA, const char* sB, int line, const char* file )
+ { check_equal( A.c_str(), B.c_str(), sA, sB, line, file); }
+
void check_equal( float A, float B, float eps, const char* sA, const char* sB, int line, const char* file )
{ EQUAL_TEST_IMPL( fabsf(A - B) <= eps, f ) }
More information about the moab-dev
mailing list