diff --git a/crates/horizon-client/src/blocks/decode_tests.rs b/crates/horizon-client/src/blocks/decode_tests.rs index be676317d..d9d0e14fd 100644 --- a/crates/horizon-client/src/blocks/decode_tests.rs +++ b/crates/horizon-client/src/blocks/decode_tests.rs @@ -23,6 +23,8 @@ fn shape_identity_and_geometry_match_the_value_loader() -> crate::Result<()> { .iter() .map(|s| serde_json::from_str::(s)) .collect::, _>>()?; + // Value equality merges signed zero; the legacy string keys do not. + let keys: Vec<_> = values.iter().map(Value::to_string).collect(); let mut shapes = Shapes::default(); let actual = inputs .iter() @@ -60,7 +62,7 @@ fn shape_identity_and_geometry_match_the_value_loader() -> crate::Result<()> { for j in 0..values.len() { assert_eq!( Arc::ptr_eq(&actual[i], &actual[j]), - value.to_string() == values[j].to_string(), + keys[i] == keys[j], "{i}, {j}" ); }