IMP  2.2.0
The Integrative Modeling Platform
test_macros.h File Reference
+ Include dependency graph for test_macros.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IMP_TEST_EQUAL(a, b)
 Report an error if a != b.
 
#define IMP_TEST_GREATER_THAN(a, b)
 Report an error if a < b.
 
#define IMP_TEST_LESS_THAN(a, b)
 Report an error if a >= b.
 
#define IMP_TEST_TRUE(a)
 Report an error if !a. More...
 

Detailed Description

Macros for writing C++ tests.

Copyright 2007-2014 IMP Inventors. All rights reserved.

Definition in file test_macros.h.

Macro Definition Documentation

#define IMP_TEST_TRUE (   a)
Value:
if (!(a)) { \
IMP_ERROR("Test failed: !" << #a); \
}
#define IMP_ERROR(expr)
Write a warning to standard error.

Definition at line 21 of file test_macros.h.