Function common_testing::assert::not_equal
source · pub fn not_equal<E, R>(a: E, b: R)
Expand description
Asserts two values are not equal using PartialEq, allowing for different types to be compared.
Error message will show the values that were compared using
pretty_assertions
crate.
Example
use common_testing::assert;
#[test]
fn test_1() {
let result = "abc";
not_equal(result, "def");
not_equal(result.as_bytes(), b"bcd");
}