diff --git a/dns_test.go b/dns_test.go index 4463965a..bc8361f0 100644 --- a/dns_test.go +++ b/dns_test.go @@ -112,3 +112,13 @@ func TestPack(t *testing.T) { } } } + +func TestCompressLenght(t *testing.T) { + m := new(Msg) + m.SetQuestion("miek.nl", TypeMX) + ul := m.Len() + m.Compress = true + if ul != m.Len(){ + t.Fatalf("Should be equal") + } +}