We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bacea8 commit 9adbd9eCopy full SHA for 9adbd9e
1 file changed
tests/test_arbitrary_precision.rs
@@ -43,6 +43,19 @@ fn test_float() {
43
});
44
}
45
46
+#[test]
47
+fn test_greater_than_u128_max() {
48
+ Python::attach(|py| {
49
+ let json_str = r#"1.23e+100"#;
50
+ let value: Value = serde_json::from_str(json_str).unwrap();
51
+ let result = pythonize(py, &value).unwrap();
52
+ let number_str = result.str().unwrap().to_string();
53
+
54
+ assert!(result.is_instance_of::<pyo3::types::PyFloat>());
55
+ assert_eq!(number_str, "1.23e+100");
56
+ });
57
+}
58
59
#[test]
60
fn test_int() {
61
Python::attach(|py| {
0 commit comments