WVPASSNE(1, 2);
WVPASSEQ(1, 1);
WVPASSLT(1, 2);
+
+ WVPASSEQ("hello", "hello");
+ WVPASSNE("hello", "hello2");
+
+ WVPASSEQ(std::string("hello"), std::string("hello"));
+ WVPASSNE(std::string("hello"), std::string("hello2"));
}
}
+bool WvTest::start_check_eq(const char *file, int line,
+ const std::string &a, const std::string &b,
+ bool expect_pass)
+{
+ return start_check_eq(file, line, a.c_str(), b.c_str(), expect_pass);
+}
+
+
bool WvTest::start_check_eq(const char *file, int line,
int a, int b, bool expect_pass)
{
#endif
#include <time.h>
+#include <string>
class WvTest
{
{ start(file, line, condstr); check(cond); return cond; }
static bool start_check_eq(const char *file, int line,
const char *a, const char *b, bool expect_pass);
+ static bool start_check_eq(const char *file, int line,
+ const std::string &a, const std::string &b,
+ bool expect_pass);
static bool start_check_eq(const char *file, int line, int a, int b,
bool expect_pass);
static bool start_check_lt(const char *file, int line,