use smoothy::assert_that; #[test] fn succeeds() { let vec: Vec = vec![String::from("Hello World!")]; assert_that(vec).is_not_empty(); } #[test] #[should_panic = "assertion failed: `(Iterator is not empty)`\n found: None"] fn fails() { let vec: Vec = vec![]; assert_that(vec).is_not_empty(); }