()
| 197 | |
| 198 | #[test] |
| 199 | fn test_option_some_round_trip() { |
| 200 | Python::attach(|py| { |
| 201 | let original = WithOption { |
| 202 | label: "y".into(), |
| 203 | count: Some(99), |
| 204 | }; |
| 205 | let py_obj = pythonize(py, &original).unwrap(); |
| 206 | let result: WithOption = depythonize(&py_obj).unwrap(); |
| 207 | assert_eq!(result, original); |
| 208 | }); |
| 209 | } |
| 210 | |
| 211 | #[test] |
| 212 | fn test_option_some_i64_max() { |
nothing calls this directly
no test coverage detected