common: remove duplicate test cases #32624 (#1556)

This commit is contained in:
Daniel Liu 2025-09-22 20:43:50 +08:00 committed by GitHub
parent 79f681688b
commit 6e5f466df9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -408,7 +408,6 @@ func TestUnmarshalFixedUnprefixedText(t *testing.T) {
{input: "0x2", wantErr: ErrOddLength},
{input: "2", wantErr: ErrOddLength},
{input: "4444", wantErr: errors.New("hex string has length 4, want 8 for x")},
{input: "4444", wantErr: errors.New("hex string has length 4, want 8 for x")},
// check that output is not modified for partially correct input
{input: "444444gg", wantErr: ErrSyntax, want: []byte{0, 0, 0, 0}},
{input: "0x444444gg", wantErr: ErrSyntax, want: []byte{0, 0, 0, 0}},