From d1c77fbed45f300010331b234d088f5c868659b9 Mon Sep 17 00:00:00 2001 From: Christopher Sasarak Date: Fri, 21 Jun 2024 14:50:10 -0500 Subject: [PATCH] Update tests/it/code_vsi.rs Co-authored-by: Jessica Black --- tests/it/code_vsi.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/it/code_vsi.rs b/tests/it/code_vsi.rs index eae8885..d39ad1c 100644 --- a/tests/it/code_vsi.rs +++ b/tests/it/code_vsi.rs @@ -162,8 +162,10 @@ fn serde_serialization_matches_external_contract() { let json_value = serde_json::to_value(kind).expect("serde serialization"); let json = json_value.as_str().expect("get string").to_string(); - // Check that the insert wasn't a duplicate. - assert!(actual_serializations_for_kinds.insert(json)); + assert!( + actual_serializations_for_kinds.insert(json), + "serialized value for kind {kind:?} is duplicate" + ); } assert_eq!(