From 51b1bd02b3ba05e1269e2636280af1d51499083d Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 10 Jul 2023 23:41:33 -0700 Subject: [PATCH] Add test of trailing whitespace in integer key --- tests/test.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test.rs b/tests/test.rs index 96068a5b9..43007fdcb 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -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"), ]); }