From e4f9055a183a301f7865e0151b9b3ff4a1455ffb Mon Sep 17 00:00:00 2001 From: "dobby-yivi-agent[bot]" <275734547+dobby-yivi-agent[bot]@users.noreply.github.com> Date: Sun, 17 May 2026 23:36:22 +0000 Subject: [PATCH] test: assert equality in test_byte_roundtrip_signature Bring test_byte_roundtrip_signature in line with the sibling roundtrip tests by asserting the decoded Signature equals the original, catching any future non-canonical decoding regressions. Closes #20 --- src/gg.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gg.rs b/src/gg.rs index 433712e..ebe61c0 100644 --- a/src/gg.rs +++ b/src/gg.rs @@ -493,6 +493,7 @@ mod tests { let sig = Signer::new().chain(b"msg").sign(&usk, &mut OsRng); let bytes = sig.to_bytes(); let recovered = Signature::from_bytes(&bytes).expect("valid sig bytes"); + assert_eq!(sig, recovered); assert_eq!(bytes, recovered.to_bytes()); }