mirror of
https://github.com/serde-rs/json.git
synced 2025-10-02 15:26:00 +00:00
Add regression test for issue 953
This commit is contained in:
parent
586fefb5a1
commit
c27b02334b
9
tests/regression/issue953.rs
Normal file
9
tests/regression/issue953.rs
Normal file
@ -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());
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user