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.

Use pretty_assertions For Colorful, Easier To Read Test Error Output

TODO: Pull subtitle into page object
Code
//! ```cargo
//! [dependencies]
//! pretty_assertions = "1.4.0"
//! ```

use pretty_assertions::assert_eq;

#[derive(Debug, PartialEq)]
struct Foo {
    lorem: &'static str,
    ipsum: u32,
    dolor: Result<String, String>,
}

fn main() {
  let x = Some(Foo { lorem: "Hello World!", ipsum: 42, dolor: Ok("hey".to_string())});
  let y = Some(Foo { lorem: "Hello Wrold!", ipsum: 42, dolor: Ok("hey ho!".to_string())});
  assert_eq!(x, y);
}

Debugging Stuff

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

        -- title

Use pretty_assertions For Colorful, Easier 
To Read Test Error Output

-- code
-- rust

//! ```cargo
//! [dependencies]
//! pretty_assertions = "1.4.0"
//! ```

use pretty_assertions::assert_eq;

#[derive(Debug, PartialEq)]
struct Foo {
    lorem: &'static str,
    ipsum: u32,
    dolor: Result<String, String>,
}

fn main() {
  let x = Some(Foo { lorem: "Hello World!", ipsum: 42, dolor: Ok("hey".to_string())});
  let y = Some(Foo { lorem: "Hello Wrold!", ipsum: 42, dolor: Ok("hey ho!".to_string())});
  assert_eq!(x, y);
}

-- image
-- pretty-assertions-rust-output



-- categories
-- Rust 

-- groups

-- metadata
-- date: 2023-12-20 17:44:57
-- id: 2zphrkfn
-- site: aws
-- type: post
-- status: published