modm API documentation
|
Classes | |
class | unittest::CountType |
Data type to count the number of constructor etc. calls More... | |
class | unittest::Reporter |
Reporter More... | |
class | unittest::TestSuite |
Base class for every test suite More... | |
#define | TEST_ASSERT_TRUE(expr) TEST_RETURN_(::unittest::checkExpression((expr), __LINE__)) |
Verify (expr) is true. | |
#define | TEST_ASSERT_FALSE(expr) TEST_RETURN_(::unittest::checkExpression(!static_cast<bool>(expr), __LINE__)) |
Verify (expr) is false. | |
#define | TEST_ASSERT_EQUALS(x, y) TEST_RETURN_(::unittest::checkEqual((x), (y), __LINE__)) |
Verify (x == y) | |
#define | TEST_ASSERT_DIFFERS(x, y) TEST_RETURN_(::unittest::checkDiffer((x), (y), __LINE__)) |
Verify (x != y) | |
#define | TEST_ASSERT_EQUALS_FLOAT(x, y) TEST_RETURN_(::unittest::checkEqual(static_cast<float>(x), static_cast<float>(y), __LINE__)) |
Verify (x == y) for floating point values. | |
#define | TEST_ASSERT_EQUALS_DELTA(x, y, d) TEST_RETURN_(::unittest::checkEqualDelta((x), (y), (d), __LINE__)) |
Verify (x == y) up to delta d. | |
#define | TEST_ASSERT_EQUALS_RANGE(value, lower, upper) TEST_RETURN_(::unittest::checkRange((value), (lower), (upper), __LINE__)) |
Verify (lower <= value <= upper) | |
#define | TEST_ASSERT_EQUALS_STRING(x, y) TEST_RETURN_(::unittest::checkString((x), (y), __LINE__)) |
Verify two strings as equal. | |
lbuild module: modm:unittest
Lightweight library for on-device unit testing.