Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Sep 18, 2023
1 parent 5ef7f00 commit 7dd73d8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/test_python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ use jiter::JsonValue;

#[test]
fn test_to_py_object_numeric() {
let value = JsonValue::parse(
br#" { "int": 1, "bigint": 123456789012345678901234567890, "float": 1.2} "#,
)
.unwrap();
let value =
JsonValue::parse(br#" { "int": 1, "bigint": 123456789012345678901234567890, "float": 1.2} "#).unwrap();
Python::with_gil(|py| {
let python_value = value.to_object(py);
let string = python_value.as_ref(py).to_string();
assert_eq!(string, "{'int': 1, 'bigint': 123456789012345678901234567890, 'float': 1.2}");
assert_eq!(
string,
"{'int': 1, 'bigint': 123456789012345678901234567890, 'float': 1.2}"
);
})
}

Expand Down

0 comments on commit 7dd73d8

Please sign in to comment.