1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#[test] fn a() { println!("print from successful test"); // Should pass } #[test] fn b() { assert!(false); } #[test] #[should_panic] fn c() { assert!(false); } #[test] #[ignore = "msg"] fn d() { assert!(false); }