October 2019
Intermediate to advanced
444 pages
10h 37m
English
Let's examine how we can take control of multiple panic! instances:
#[cfg(test)]mod tests { #[test] #[should_panic] fn test_regular_panic() { panic!(); }}
#[test] #[should_panic] fn test_unwrap() { // panics if "None" None::<i32>.unwrap(); }
Read now
Unlock full access