From 53e5332e7258c980b51d44e50cf362d0f7feb4e8 Mon Sep 17 00:00:00 2001 From: Haoming Meng Date: Thu, 1 Feb 2024 22:19:11 +0000 Subject: [PATCH] Add test case for summary packet --- verify_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/verify_test.go b/verify_test.go index c3e8b79..ce7c0c5 100644 --- a/verify_test.go +++ b/verify_test.go @@ -28,6 +28,16 @@ func TestGoodVerify(t *testing.T) { } +func TestVerifySummaryPacket(t *testing.T) { + summaryPacket := ` + + ` + + assert.True(t, VerifyPacket([]byte(summaryPacket)), "Failed to verify packet") +} + // TestBadVerify tests the validation if the packets are not good (random bits) func TestBadVerify(t *testing.T) { badHeader := Header{}