|
Namespaces |
| namespace | std |
| namespace | ECCI |
Defines |
|
#define | ADH_test_h |
| | Evita la inclusión múltiple.
|
|
#define | TEST_ADH_test() |
| | [ADH_test] Macros propios de ADH_test.h
|
| #define | TEST_THIS(cond) testThis( cond, #cond, __FILE__, __LINE__ ) |
| #define | TEST_THIS_Msg(msg, cond) testThis( cond, msg, __FILE__, __LINE__ ) |
| #define | TEST_ERROR(str) recordError( str, __FILE__, __LINE__ ) |
| #define | TEST_SUCCESS() recordSuccess() |
| #define | TEST_EQUAL(expected, actual) testThis( (expected) == (actual), #expected " == " #actual, __FILE__, __LINE__ ) |
| #define | TEST_EQUAL_Msg(MSG, expected, actual) testThis( (expected) == (actual), MSG, __FILE__, __LINE__ ) |
|
#define | CPPUNIT_ADH_test() |
| | [CppUnit] Macros propios de CppUnit http://cppunit.sourceforge.net/doc/lastest
|
| #define | CPPUNIT_ASSERT(condition) TEST_THIS(condition) |
| #define | CPPUNIT_ASSERT_MESSAGE(message, condition) CPPUNIT_ASSERT(condition) |
| #define | CPPUNIT_FAIL(message) TEST_ERROR(message) |
| #define | CPPUNIT_ASSERT_EQUAL(expected, actual) TEST_EQUAL(expected, actual) |
| #define | CPPUNIT_ASSERT_EQUAL_MESSAGE(message, expected, actual) TEST_EQUAL_Msg(message, expected, actual) |
| #define | CPPUNIT_ASSERT_DOUBLES_EQUAL(expected, actual, delta) assertEquals_Delta(expected, actual, delta) |
| #define | CPPUNIT_ASSERT_THROW(expression, ExceptionType) |
| #define | CPPUNIT_ASSERT_NO_THROW(expression) |
| #define | CPPUNIT_ASSERT_ASSERTION_FAIL(assertion) CPPUNIT_ASSERT_THROW( assertion, CPPUNIT_NS::Exception ) |
| #define | CPPUNIT_ASSERT_ASSERTION_PASS(assertion) CPPUNIT_ASSERT_NO_THROW( assertion ) |
|
#define | JUnit_ADH_test() |
| #define | assertEquals(EXPECTED, ACTUAL) TEST_EQUAL(EXPECTED, ACTUAL) |
| #define | assertEquals_Msg(MSG, EXPECTED, ACTUAL) TEST_EQUAL_Msg(MSG, EXPECTED, ACTUAL) |
| #define | assertTrue(CONDITION) testThis( CONDITION, #CONDITION, __FILE__, __LINE__ ) |
| #define | assertTrue_Msg(MSG,CONDITION) testThis( CONDITION, MSG, __FILE__, __LINE__ ) |
| #define | assertFalse(CONDITION) testThis( !(CONDITION), "!(" #CONDITION ")", __FILE__, __LINE__ ) |
| #define | assertFalse_Msg(MSG, CONDITION) testThis( !(CONDITION), MSG, __FILE__, __LINE__ ) |
| #define | assertEquals_Delta(EXPECTED, ACTUAL, DELTA) |
| #define | assertEquals_Delta_Msg(MSG, EXPECTED, ACTUAL, DELTA) |
| #define | assertNull(OBJECT) testThis( 0==&(OBJECT), "assertNull(" #OBJECT ")", __FILE__, __LINE__ ) |
| #define | assertNotNull(OBJECT) testThis( 0!=&(OBJECT), "assertNotNull(" #OBJECT ")", __FILE__, __LINE__ ) |
| #define | assertSame(THIS, THAT) testThis( &(THIS)==&(THAT), "assertSame(" #THIS ", " #THAT ")", __FILE__, __LINE__ ) |
| #define | assertNotSame(THIS, THAT) testThis( &(THIS)!=&(THAT), "assertNotSame(" #THIS ", " #THAT ")", __FILE__, __LINE__ ) |
| #define | fail() TEST_ERROR("ERROR") |
| #define | fail_Msg(MSG) TEST_ERROR(MSG) |
Functions |
| std::ostream & | operator<< (std::ostream &COUT, const TestCase &test) |
| long | Report (std::ostream &COUT, const TestCase &test) |
|
template<class T> |
| bool | check_ok (const T &) |
| | Declaración genérica para check_ok().
|
|
bool | check_ok (const signed char &) |
| | check_ok<>()==true por defecto (por si el programador no lo ha implementado)
|
|
bool | check_ok (const unsigned char &) |
| | check_ok<>()==true por defecto (por si el programador no lo ha implementado)
|
|
bool | check_ok (const signed int &) |
| | check_ok<>()==true por defecto (por si el programador no lo ha implementado)
|
|
bool | check_ok (const unsigned int &) |
| | check_ok<>()==true por defecto (por si el programador no lo ha implementado)
|
|
bool | check_ok (const signed long &) |
| | check_ok<>()==true por defecto (por si el programador no lo ha implementado)
|
|
bool | check_ok (const unsigned long &) |
| | check_ok<>()==true por defecto (por si el programador no lo ha implementado)
|
|
bool | check_ok (const float &) |
| | check_ok<>()==true por defecto (por si el programador no lo ha implementado)
|
|
bool | check_ok (const double &) |
| | check_ok<>()==true por defecto (por si el programador no lo ha implementado)
|
|
bool | check_ok (const long double &) |
| | check_ok<>()==true por defecto (por si el programador no lo ha implementado)
|
| template<class T> |
| std::string | toString (const T &val) |