diff --git a/pkg/protocol/extension/supported_elliptic_curves_test.go b/pkg/protocol/extension/supported_elliptic_curves_test.go index c00554be1..3f7098bdd 100644 --- a/pkg/protocol/extension/supported_elliptic_curves_test.go +++ b/pkg/protocol/extension/supported_elliptic_curves_test.go @@ -22,4 +22,11 @@ func TestExtensionSupportedGroups(t *testing.T) { } else if !reflect.DeepEqual(raw, rawSupportedGroups) { t.Errorf("extensionSupportedGroups marshal: got %#v, want %#v", raw, rawSupportedGroups) } + + roundtrip := &SupportedEllipticCurves{} + if err := roundtrip.Unmarshal(raw); err != nil { + t.Error(err) + } else if !reflect.DeepEqual(roundtrip, parsedSupportedGroups) { + t.Errorf("extensionSupportedGroups unmarshal: got %#v, want %#v", roundtrip, parsedSupportedGroups) + } } diff --git a/pkg/protocol/extension/supported_point_formats_test.go b/pkg/protocol/extension/supported_point_formats_test.go index 7db3f0135..d01ea5992 100644 --- a/pkg/protocol/extension/supported_point_formats_test.go +++ b/pkg/protocol/extension/supported_point_formats_test.go @@ -22,4 +22,11 @@ func TestExtensionSupportedPointFormats(t *testing.T) { } else if !reflect.DeepEqual(raw, rawExtensionSupportedPointFormats) { t.Errorf("extensionSupportedPointFormats marshal: got %#v, want %#v", raw, rawExtensionSupportedPointFormats) } + + roundtrip := &SupportedPointFormats{} + if err := roundtrip.Unmarshal(raw); err != nil { + t.Error(err) + } else if !reflect.DeepEqual(roundtrip, parsedExtensionSupportedPointFormats) { + t.Errorf("extensionSupportedPointFormats unmarshal: got %#v, want %#v", roundtrip, parsedExtensionSupportedPointFormats) + } } diff --git a/pkg/protocol/extension/supported_signature_algorithms_test.go b/pkg/protocol/extension/supported_signature_algorithms_test.go index dbea9c126..fbaa55022 100644 --- a/pkg/protocol/extension/supported_signature_algorithms_test.go +++ b/pkg/protocol/extension/supported_signature_algorithms_test.go @@ -35,4 +35,11 @@ func TestExtensionSupportedSignatureAlgorithms(t *testing.T) { } else if !reflect.DeepEqual(raw, rawExtensionSupportedSignatureAlgorithms) { t.Errorf("extensionSupportedSignatureAlgorithms marshal: got %#v, want %#v", raw, rawExtensionSupportedSignatureAlgorithms) } + + roundtrip := &SupportedSignatureAlgorithms{} + if err := roundtrip.Unmarshal(raw); err != nil { + t.Error(err) + } else if !reflect.DeepEqual(roundtrip, parsedExtensionSupportedSignatureAlgorithms) { + t.Errorf("extensionSupportedSignatureAlgorithms unmarshal: got %#v, want %#v", roundtrip, parsedExtensionSupportedSignatureAlgorithms) + } }