length tests

This commit is contained in:
Miek Gieben 2012-08-26 22:10:55 +02:00
parent d088547d45
commit cc1bb251cc

View File

@ -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")
}
}