uCUnit Logo

Documentation

Home | Getting Started | Documentation | Related Sites

Assertions

ASSERT_EQUAL(expected,actual)

 #define ASSERT_EQUAL(expected,actual)

Asserts that actual value equals expected value.

ASSERT_NULL(pointer)

 #define ASSERT_NULL(pointer)

Asserts that a pointer is NULL.

ASSERT_NOT_NULL(pointer)

 #define ASSERT_NOT_NULL(pointer)

Asserts that a pointer is not NULL.

ASSERT_MESSAGE(pointer)

 #define ASSERT_MESSAGE(condition, message)

Asserts a condition and prints a message.

ASSERT(pointer)

 #define ASSERT(condition)

Asserts a condition.

TEST_FAIL(message)

 #define TEST_FAIL(message) 
Prints a message why assertion failed.

Critical Tests

CRITICAL_ASSERT(condition)

 #define CRITICAL_ASSERT(condition)
Safety critical unit test. If assertion fails, the system is put into a safe state.

CRITICAL_FAIL(message)

 #define CRITICAL_FAIL(message)
Safety critical fail to put system in a safe state.

Copyright (C) 2007 by  KRAUSS Computer Engineering  |  Impressum  |  Datenschutz