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

◆ is_greater_or_equal_

#define is_greater_or_equal_ (   ...)

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

Asserts that the first value is greater than or equal to 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_greater_or_equal_(24, 12); // test ok.
xtd::tunit::assert::is_greater_or_equal_(24, 24); // test ok.
xtd::tunit::assert::is_greater_or_equal_(24, 48, "User message..."); // test error.
xtd::tunit::assume::is_greater_or_equal_(24, 12); // test ok.
xtd::tunit::assume::is_greater_or_equal_(24, 24); // test ok.
xtd::tunit::assume::is_greater_or_equal_(24, 48, "User message..."); // test error.
xtd::tunit::valid::is_greater_or_equal_(24, 12); // test ok.
xtd::tunit::valid::is_greater_or_equal_(24, 24); // test ok.
xtd::tunit::valid::is_greater_or_equal_(24, 48, "User message..."); // test error.