19 using namespace basis;
25 #undef UNIT_BASE_THIS_OBJECT
26 #define UNIT_BASE_THIS_OBJECT testing
27 #undef static_class_name
28 #define static_class_name() "system_checkup"
32 FUNCDEF(
"check_system_characteristics")
35 int byte_size =
sizeof(
abyte);
36 ASSERT_EQUAL(byte_size, 1,
"byte size should be 1 byte");
37 int int16_size =
sizeof(
int16);
39 "uint16 size should be 2 bytes");
40 int uint_size =
sizeof(
un_int);
42 ASSERT_FALSE( (uint_size !=
sizeof(
int)) || (uint_size != 4),
43 "un_int size should be 2 bytes");
48 #undef UNIT_BASE_THIS_OBJECT
49 #define UNIT_BASE_THIS_OBJECT (*this)
50 #undef static_class_name
#define FUNCDEF(func_in)
FUNCDEF sets the name of a function (and plugs it into the callstack).
The guards collection helps in testing preconditions and reporting errors.
unsigned char abyte
A fairly important unit which is seldom defined...
unsigned int un_int
Abbreviated name for unsigned integers.
A logger that sends to the console screen using the standard output device.
bool check_system_characteristics(unit_base &testing)
Useful support functions for unit testing, especially within hoople.
#define ASSERT_EQUAL(a, b, test_name)
#define ASSERT_FALSE(a, test_name)