xtd 0.2.0
Loading...
Searching...
No Matches

◆ is_less_

#define is_less_ (   ...)

#include <xtd.tunit/include/xtd/tunit/assert.h>

Asserts that the first value is is_less than the second value.

Parameters
val1the first value.
val2the second value.
messageA facutative user message to display if the assertion fails. This message can be seen in the unit test results.
Remarks
Contains information about current file and current line.
Can be used with xtd::tunit::assert, xtd::tunit::assume and xtd::tunit::valid classes.
Examples
xtd::tunit::assert::is_less_(24, 48); // test ok.
xtd::tunit::assert::is_less_(24, 12, "User message..."); // test error.
xtd::tunit::assume::is_less_(24, 48); // test ok.
xtd::tunit::assume::is_less_(24, 12, "User message..."); // test error.
xtd::tunit::valid::is_less_(24, 48); // test ok.
xtd::tunit::valid::is_less_(24, 12, "User message..."); // test error.