Skip to content

Commit

Permalink
Add regression test for issue 953
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 22, 2022
1 parent 586fefb commit c27b023
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/regression/issue953.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
use serde_json::Value;

#[test]
fn test() {
let x1 = serde_json::from_str::<Value>("18446744073709551615.");
assert!(x1.is_err());
let x2 = serde_json::from_str::<Value>("18446744073709551616.");
assert!(x2.is_err());
}

0 comments on commit c27b023

Please sign in to comment.