Macro
SEQAN_ASSERT_LEQ
Test that the two given expressions are in the less-than-or-equal relation as defined by the matching call to operator<=(,).
Remarks
The main advantage of this macro is that it prints the values of its argument on failures. Note that the operator<< to the type of std::cerr has to be defined for the type of both expression parameters. Otherwise, simply use the equivalent SEQAN_ASSERT call.
See SEQAN_CHECK and SEQAN_FAIL for (conditionally) aborting your program regardless of debug settings.
Examples
SEQAN_ASSERT_LEQ(1, 2); // will not run through
SEQAN_ASSERT_LEQ_MSG(1, 2, "msg"); // will fail with message
See Also
SeqAn - Sequence Analysis Library - www.seqan.de