mirror of
https://github.com/miekg/dns.git
synced 2025-10-13 10:51:02 +02:00
length tests
This commit is contained in:
parent
d088547d45
commit
cc1bb251cc
10
dns_test.go
10
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")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user