// assertUdpAddrInArray asserts every address in want is at the same position in have and that the lengths match
assertUdpAddrInArray asserts every address in want is at the same position in have and that the lengths match
// assertUdpAddrInArray asserts every address in want is at the same position in have and that the lengths match
func assertUdpAddrInArray(t *testing.T, have []*udp.Addr, want ...*udp.Addr) {
	assert.Len(t, have, len(want))
	for k, w := range want {
		if !(have[k].IP.Equal(w.IP) && have[k].Port == w.Port) {
			assert.Fail(t, fmt.Sprintf("Response did not contain: %v at %v; %v", w, k, have))
		}
	}
}
func assertUdpAddrInArray ( t * testing . T , have [ ] * udp . Addr , want ... * udp . Addr ) { assert . Len ( t , have , len ( want ) ) for k , w := range want { if ! ( have [ k ] . IP . Equal ( w . IP ) && have [ k ] . Port == w . Port ) { assert . Fail ( t , fmt . Sprintf ( " " , w , k , have ) ) } } }
assertUdpAddrInArray asserts every address in want is at the same position in have and that the lengths match
assertUdpAddrInArray asserts every address in want is at the same position in have and that the lengths match