Packages
Browse packages indexed by the registry.
A Rust macro that asserts that all variants of an enum are as provided in the macro invocation.
Accepts any number of arguments and panics if they are not equal.
proc-macros for assert_eq
Useful macro to assert that a certain symbol exists in the source code. This is useful to strictly couple otherwise loosely coupled functions and symbols that depend on each other.
Assertions for floating-point equality.
A Rust macro for checking if a struct has a specific field.
display assert panics in hexadecimal {:#x?} format
Assert that a line of code isn't executed too many times
For when writing .try_into().unwrap() feels too long
json testing made simple
Assert struct layouts, including field sizes and offsets.
assert_let macro for tests.
A convenience macro for writing pattern-matching tests
Asserts that a value matches a pattern
Deprecated. See strass::assert_let for a macro with the same functionality.
Macro for asserting that a string matches a regex
An extended assert macro that extends Rust’s built-in assert macro to give better messages on failure.
Custom Rust allocator allowing to temporarily disable memory (de)allocations for a thread. Aborts or prints a warning if allocating although forbidden.
Assert that some code is panic-free. Fast to compile, no syn or macros etc...
A macro to assert that a type has a specific size at compile time
rust test helper similar to jest's snapshot function
Helper macros for use with boolean-valued predicate functions.
Like Rust's built-in `assert_eq` macro, but for token streams. Passes them through rustfmt, and shows a pretty diff.
De-randomized detereministic tests with test-vectors
Statically assert that a type matches another type
Auxiliary crate for check feature uniqueness
A direct replacement for `assert_eq` for unordered collections
Assertables: assert macros for better testing, debugging, quality assurance, and runtime reliability.
An assert_eq macro that prints more helpful diffs on mismatch
Proc macros for asserteq_pretty
New assertion library for rust
Deprecated: use assert2 for better assertions
Fluent assertions for tests in Rust that are convenient to write and easy to extend.
Provides const assertions mechanism.
Derive AssertrEq implementations.
Asserts utilliy macros for Rust