home
NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Rust Pretty Assertions

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

Usage

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


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

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