package shared

import "testing"

func TestDecodeHexUint8_LeadingZeros(t *testing.T) {
	t.Parallel()

	const resp = "0x0000000000000000000000000000000000000000000000000000000000000006"
	val, err := DecodeHexUint8(resp)
	if err != nil {
		t.Fatalf("DecodeHexUint8 error: %v", err)
	}
	if val != 6 {
		t.Fatalf("DecodeHexUint8 value = %d, want 6", val)
	}
}
