()
| 6 | |
| 7 | #[test] |
| 8 | fn test_greater_than_u64_max() { |
| 9 | Python::attach(|py| { |
| 10 | let json_str = r#"18446744073709551616"#; |
| 11 | let value: Value = serde_json::from_str(json_str).unwrap(); |
| 12 | let result = pythonize(py, &value).unwrap(); |
| 13 | let number_str = result.str().unwrap().to_string(); |
| 14 | |
| 15 | assert!(result.is_instance_of::<pyo3::types::PyInt>()); |
| 16 | assert_eq!(number_str, "18446744073709551616"); |
| 17 | }); |
| 18 | } |
| 19 | |
| 20 | #[test] |
| 21 | fn test_less_than_i64_min() { |
nothing calls this directly
no test coverage detected