aboutsummaryrefslogtreecommitdiff
path: root/lib/jsoncpp/src/test_lib_json/jsontest.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jsoncpp/src/test_lib_json/jsontest.h')
-rw-r--r--lib/jsoncpp/src/test_lib_json/jsontest.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/jsoncpp/src/test_lib_json/jsontest.h b/lib/jsoncpp/src/test_lib_json/jsontest.h
index b2553baea1..0d072382e1 100644
--- a/lib/jsoncpp/src/test_lib_json/jsontest.h
+++ b/lib/jsoncpp/src/test_lib_json/jsontest.h
@@ -1,3 +1,8 @@
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
#ifndef JSONTEST_H_INCLUDED
# define JSONTEST_H_INCLUDED
@@ -110,6 +115,8 @@ namespace JsonTest {
public:
TestCase();
+ virtual ~TestCase();
+
void run( TestResult &result );
virtual const char *testName() const = 0;
@@ -192,7 +199,7 @@ namespace JsonTest {
/// JSONTEST_ASSERT( x == y ) << "x=" << x << ", y=" << y;
/// JSONTEST_ASSERT( x == y );
#define JSONTEST_ASSERT( expr ) \
- if ( condition ) \
+ if ( expr ) \
{ \
} \
else \