1package dns
2
3import (
4	"testing"
5)
6
7func TestFieldEmptyAOrAAAAData(t *testing.T) {
8	res := Field(new(A), 1)
9	if res != "" {
10		t.Errorf("expected empty string but got %v", res)
11	}
12	res = Field(new(AAAA), 1)
13	if res != "" {
14		t.Errorf("expected empty string but got %v", res)
15	}
16}
17