gofmt simplify

This commit is contained in:
Sarah Jamie Lewis 2016-11-08 14:54:12 -08:00
parent 985e7d3c5c
commit c37f9008b6
1 changed files with 8 additions and 8 deletions

View File

@ -35,9 +35,9 @@ func TestSendRicochetPacket(t *testing.T) {
func TestSendRicochetPacket_Invalid(t *testing.T) { func TestSendRicochetPacket_Invalid(t *testing.T) {
rni := RicochetNetwork{} rni := RicochetNetwork{}
invalidPackets := []RicochetData{ invalidPackets := []RicochetData{
RicochetData{-1, []byte{}}, {-1, []byte{}},
RicochetData{65536, []byte{}}, {65536, []byte{}},
RicochetData{0, make([]byte, 65532)}, {0, make([]byte, 65532)},
} }
for _, td := range invalidPackets { for _, td := range invalidPackets {
@ -87,11 +87,11 @@ func TestRecvRicochetPacket(t *testing.T) {
func TestRecvRicochetPacket_Invalid(t *testing.T) { func TestRecvRicochetPacket_Invalid(t *testing.T) {
rni := RicochetNetwork{} rni := RicochetNetwork{}
invalidPackets := [][]byte{ invalidPackets := [][]byte{
[]byte{0x00, 0x00, 0x00, 0x00}, {0x00, 0x00, 0x00, 0x00},
[]byte{0x00, 0x03, 0x00, 0x00}, {0x00, 0x03, 0x00, 0x00},
[]byte{0xff}, {0xff},
[]byte{0x00, 0x06, 0x00, 0x00, 0x00}, {0x00, 0x06, 0x00, 0x00, 0x00},
[]byte{}, {},
} }
for _, td := range invalidPackets { for _, td := range invalidPackets {