1 files changed, 8 insertions(+), 0 deletions(-)

M packet_test.go
M packet_test.go +8 -0
@@ 44,4 44,12 @@ func TestPacket(t *testing.T) {
 	if int(n) != len(expected) {
 		t.Fatalf("%d != %d", n, len(expected))
 	}
+	if (
+		other.header.ConnectionId != 1234 ||
+		other.header.Sequence != 1234 ||
+		other.header.Ack != 1234 ||
+		other.header.Control != 1234 ||
+		!bytes.Equal(other.Payload, []byte("1234"))) {
+		t.Fatalf("bad packet %v", other)
+	}
 }