uquic/internal/wire/ack_range_test.go
2022-10-11 16:38:44 +04:00

13 lines
314 B
Go

package wire
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("ACK range", func() {
It("returns the length", func() {
Expect(AckRange{Smallest: 10, Largest: 10}.Len()).To(BeEquivalentTo(1))
Expect(AckRange{Smallest: 10, Largest: 13}.Len()).To(BeEquivalentTo(4))
})
})