Registry / testing / pretty-assertions

pretty-assertions

JSON →
library1.4.1rscratesunverified

Overwrites assert_eq! and assert_ne! with colorful diff output for clearer test failures.

# Cargo.toml [dependencies] pretty_assertions = "1.4.1"
INSTALL
IMPORT
SIG · PRETTY-ASSERTIONS
P
pretty-assertions
testingrustv1.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

assert_eq
use pretty_assertions::{assert_eq, assert_ne};

Drop-in replacement for standard assert_eq! with colored diffs.

use pretty_assertions::{assert_eq, assert_ne}; fn main() { let a = vec![1, 2, 3]; let b = vec![1, 2, 4]; assert_eq!(a, b, "Vectors are not equal"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.4.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
pretty-assertions — cargo add pretty-assertions · libregistry