Skip to content

Commit

Permalink
Add test of trailing whitespace in integer key
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jul 11, 2023
1 parent af242a1 commit 51b1bd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1905,6 +1905,7 @@ fn test_integer_key() {
r#"{" 123":null}"#,
"invalid value: expected key to be a number in quotes at line 1 column 2",
),
(r#"{"123 ":null}"#, "expected `\"` at line 1 column 6"),
]);
}

Expand Down

0 comments on commit 51b1bd0

Please sign in to comment.