More Asserts (for Rust).

Docs Latest Version Minimum Rust Version

Small library providing assertion macros similar to the {debug_,}assert_{eq,ne} macros in the stdlib.

Usage

```rust use more_asserts as ma;

[derive(Debug, PartialEq, PartialOrd)]

enum Example { Foo, Bar }

ma::assertle!(3, 4); ma::assertge!( 10, 10, "You can pass a message too (just like assert_eq!)", ); ma::debugassertlt!( 1.3, 4.5, "Format syntax is supported ({}).", "also like assert_eq!" );

ma::assert_gt!( Example::Bar, Example::Foo, "It works on anything that implements PartialOrd and Debug!", ); ```

License

CC0 (public domain).