MCPcopy Create free account
hub / github.com/davidhewitt/pythonize / test_greater_than_u64_max

Function test_greater_than_u64_max

tests/test_arbitrary_precision.rs:8–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7#[test]
8fn 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]
21fn test_less_than_i64_min() {

Callers

nothing calls this directly

Calls 1

pythonizeFunction · 0.85

Tested by

no test coverage detected