| #![cfg(test)] | |
| use rust_tutorial::*; | |
| #[test] | |
| fn integration_test_a() { | |
| assert_eq!("a", "a"); | |
| } | |
| #[test] | |
| fn integration_test_b() { | |
| assert_eq!("b", "b"); | |
| } | |
| #[test] | |
| fn integration_test_c() { | |
| let c = true; | |
| assert!(c); | |
| } | |
| #[test] | |
| fn integration_test_d() { | |
| assert_ne!(0, 1); | |
| } | |
| #[test] | |
| fn integration_test_e() { | |
| let p = Person { | |
| age: 30, | |
| name: "Mary".to_string(), | |
| }; | |
| assert_eq!(p.age, 30); | |
| } |