File: ack_range_test.go

package info (click to toggle)
golang-github-lucas-clemente-quic-go 0.54.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,312 kB
  • sloc: sh: 54; makefile: 7
file content (12 lines) | stat: -rw-r--r-- 259 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
package wire

import (
	"testing"

	"github.com/stretchr/testify/require"
)

func TestAckRangeLength(t *testing.T) {
	require.EqualValues(t, 1, AckRange{Smallest: 10, Largest: 10}.Len())
	require.EqualValues(t, 4, AckRange{Smallest: 10, Largest: 13}.Len())
}