IMP  2.1.1
The Integrative Modeling Platform
test_macros.h File Reference
+ 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-2013 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 20 of file test_macros.h.