Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Super helpful crate that shows color diffs in rust tests (including JSON outputs)

Usage

toml
[dev-dependencies]
pretty_assertions = "1.4"
rust
fn main() {
  println!("Hello, Errors")
}


#[cfg(test)]
mod test {
    use pretty_assertions::{assert_eq, assert_ne};

    #[test]
    fn pretty_test() {
        assert_eq!(1, 2);
    }
}