Skip to content

Commit c27b023

Browse files
committed
Add regression test for issue 953
1 parent 586fefb commit c27b023

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/regression/issue953.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
use serde_json::Value;
2+
3+
#[test]
4+
fn test() {
5+
let x1 = serde_json::from_str::<Value>("18446744073709551615.");
6+
assert!(x1.is_err());
7+
let x2 = serde_json::from_str::<Value>("18446744073709551616.");
8+
assert!(x2.is_err());
9+
}

0 commit comments

Comments
 (0)