Skip to content

Commit

Permalink
Format PR 1037 with rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jul 11, 2023
1 parent 1e1bfa8 commit 3ddda75
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1909,10 +1909,16 @@ fn test_integer_key() {
]);

let err = from_value::<BTreeMap<i32, ()>>(json!({" 123":null})).unwrap_err();
assert_eq!(err.to_string(), "invalid value: expected key to be a number in quotes");
assert_eq!(
err.to_string(),
"invalid value: expected key to be a number in quotes",
);

let err = from_value::<BTreeMap<i32, ()>>(json!({"123 ":null})).unwrap_err();
assert_eq!(err.to_string(), "invalid value: expected key to be a number in quotes");
assert_eq!(
err.to_string(),
"invalid value: expected key to be a number in quotes",
);
}

#[test]
Expand Down

0 comments on commit 3ddda75

Please sign in to comment.