Skip to main content

assert_not_same_slices

Macro assert_not_same_slices 

Source
macro_rules! assert_not_same_slices {
    ($awaiting:expr, $result:expr) => { ... };
    ($awaiting:expr, $result:expr, $msg:literal) => { ... };
}
Expand description

Assertion for not same slices. Not same slices means, is not same content or not same the size.

§Arguments

  • awaiting - The slice reference.
  • result - The slice to test.
  • msg - (Optional) The message for this assertion if failed.

§Example

use utmt::assert_not_same_slices;

assert_not_same_slices!([1,2,3,4,5], [6,7,8,9,10]);
use utmt::assert_not_same_slices;

assert_not_same_slices!([1,2,3,4], [1,2,3,4]);