The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.
TODO: Pull subtitle into page object
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);
    }
}

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- bookmark
-- title: Rust Pretty Assertions
-- url: https://docs.rs/pretty_assertions/latest/pretty_assertions/

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

-- h2

Usage

-- code
-- toml
-- subtitle: Cargo.toml

[dev-dependencies]
pretty_assertions = "1.4"


-- code
-- rust
-- subtitle: main.rs

fn main() {
  println!("Hello, Errors")
}


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

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


-- categories
-- Bookmarks
-- Rust


-- metadata
-- date: 2023-08-11 11:44:42
-- id: 2tqrzuu8
-- site: aws
-- type: bookmark
-- status: published