micro-test-plus 3.2.0
µTest++, a lightweight testing framework for embedded platforms
Loading...
Searching...
No Matches
Explicit namespaces

In complex projects, the definitions in the micro_test_plus namespace might interfere with application definitions.

Note
To avoid names clashes, it is recommended to use the comparator functions with explicit namespaces, possibly aliased to shorter names.

However, for those who prefer brevity, it is also possible to declare the namespace micro_os_plus::micro_test_plus at scope level, and use all the definitions directly.

Example
{
test_case ("Check answer", [] {
expect (eq (compute_answer (), 42)) << "answer is 42";
});
}