Macro
SEQAN_ASSERT_IN_DELTA
Test that the given expression can be coerced to true.
SEQAN_ASSERT_IN_DELTA(x, y, delta)
SEQAN_ASSERT_IN_DELTA_MSG(x, y, delta, comment[, parameters])
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_IN_DELTA(0, 0, 0.1);  // will run through
SEQAN_ASSERT_IN_DELTA(1, -2, 1);  // will fail
SEQAN_ASSERT_IN_DELTA(1, "foo");  // will not compile
SEQAN_ASSERT_IN_DELTA_MSG(1, 0, 0.1, "msg");  // will fail with message
SeqAn - Sequence Analysis Library - www.seqan.de
 

Page built @2013/07/11 09:12:37