From 2e8ef0f76852e69bec8c05e2c074388640ec7a01 Mon Sep 17 00:00:00 2001 From: ProtectedMode Date: Thu, 21 May 2015 09:59:14 +0200 Subject: [PATCH] Add test for #77, integer overflow when parsing JSON scientific notation number. --- serde_tests/tests/test_json.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/serde_tests/tests/test_json.rs b/serde_tests/tests/test_json.rs index 58f118da..c29f8286 100644 --- a/serde_tests/tests/test_json.rs +++ b/serde_tests/tests/test_json.rs @@ -703,6 +703,7 @@ fn test_parse_number_errors() { ("1e+", Error::SyntaxError(ErrorCode::InvalidNumber, 1, 3)), ("1a", Error::SyntaxError(ErrorCode::TrailingCharacters, 1, 2)), ("777777777777777777777777777", Error::SyntaxError(ErrorCode::InvalidNumber, 1, 20)), + ("1e777777777777777777777777777", Error::SyntaxError(ErrorCode::InvalidNumber, 1, 22)), ]); }