assert-not 0.1.0

A simple, no_std compatible Rust macro that works like the inverse of assert! - passes when condition is false
Documentation
use assert_not::{assert_not, debug_assert_not};

fn main() {
    println!("Testing assert_not! macro examples...");

    // Basic usage - these will pass
    assert_not!(false);
    assert_not!(2 + 2 == 5);
    println!("✓ Basic false conditions passed");

    // Usage with custom messages
    let value = 5;
    assert_not!(value == 10, "Value should not be 10, but got: {}", value);
    println!("✓ Custom message test passed");

    // Real-world examples from README
    assert_not!(value == 10); // Passes unless value is 10
    println!("✓ Value check passed");

    let foo: Option<i32> = None;
    assert_not!(foo.is_some()); // Passes unless foo is Some
    println!("✓ Option check passed");

    let x = 3;
    assert_not!(x > 5, "x is too large: {}", x); // Passes unless x > 5
    println!("✓ Range check passed");

    // Debug assertions (only active in debug builds)
    debug_assert_not!(false);
    debug_assert_not!(2 + 2 == 5, "Math should work correctly");
    println!("✓ Debug assertions passed");

    println!("All tests passed! 🎉");

    // Uncomment these lines to see panic behavior:
    // assert_not!(true); // This would panic
    // assert_not!(2 + 2 == 4, "This would also panic: {}", 2 + 2);
}