()
| 905 | |
| 906 | #[test] |
| 907 | fn zip_with() { |
| 908 | assert!(NONE.zip_with(NONE, |a, b| a + b).is_none().to_bool()); |
| 909 | assert!(NONE.zip_with(SOME, |a, b| a + b).is_none().to_bool()); |
| 910 | assert!(SOME.zip_with(NONE, |a, b| a + b).is_none().to_bool()); |
| 911 | assert_eq!( |
| 912 | SOME.zip_with(OTHER, |a, b| a + b).unwrap(), |
| 913 | SOME.unwrap() + OTHER.unwrap() |
| 914 | ); |
| 915 | } |
| 916 | } |
nothing calls this directly
no outgoing calls
no test coverage detected