github.com/apernet/quic-go@v0.43.1-0.20240515053213-5e9e635fd9f0/internal/wire/ack_range_test.go (about) 1 package wire 2 3 import ( 4 . "github.com/onsi/ginkgo/v2" 5 . "github.com/onsi/gomega" 6 ) 7 8 var _ = Describe("ACK range", func() { 9 It("returns the length", func() { 10 Expect(AckRange{Smallest: 10, Largest: 10}.Len()).To(BeEquivalentTo(1)) 11 Expect(AckRange{Smallest: 10, Largest: 13}.Len()).To(BeEquivalentTo(4)) 12 }) 13 })