diff options
Diffstat (limited to 'rfc1035label/label_test.go')
-rw-r--r-- | rfc1035label/label_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rfc1035label/label_test.go b/rfc1035label/label_test.go index 2e20736..865b41a 100644 --- a/rfc1035label/label_test.go +++ b/rfc1035label/label_test.go @@ -28,7 +28,9 @@ func TestLabelsFromBytesZeroLength(t *testing.T) { require.Equal(t, []byte{}, labels.ToBytes()) } -func TestLabelsFromBytesWithoutZeroLength(t *testing.T) { +func TestLabelsFromBytesPartialDomainName(t *testing.T) { + // Partial domain name without trailing zero-length byte as per RFC 4704 + // Section 4.2 expected := []byte{ 0x8, 'h', 'o', 's', 't', 'n', 'a', 'm', 'e', } |