home ~ projects ~ socials

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

Usage

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


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

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