github.com/tumi8/quic-go@v0.37.4-tum/noninternal/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  })