sf_assert_le

Macro sf_assert_le 

Source
macro_rules! sf_assert_le {
    ($left:expr, $right:expr $(,)?) => { ... };
    ($left:expr, $right:expr, $($arg:tt)+) => { ... };
}
Expand description

Passes if the left argument is strictly smaller than or equal to the right one.

Passes if the left argument is strictly smaller than or equal to the right argument. Otherwise, the test is marked as failure.

ยงExamples

let left = -325;
let right = 37;
sf_assert_le!(left, right);
sf_assert_le!(0, 0);
sf_assert_le!(0, -3, "this test is a failure");