uquic/internal/utils/byteorder_test.go
2017-08-30 00:19:44 +07:00

18 lines
499 B
Go

package utils
import (
"github.com/lucas-clemente/quic-go/internal/protocol"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("Byte Order", func() {
It("says little Little Endian before QUIC 39", func() {
Expect(GetByteOrder(protocol.Version36)).To(Equal(LittleEndian))
Expect(GetByteOrder(protocol.Version37)).To(Equal(LittleEndian))
})
It("says little Little Endian for QUIC 39", func() {
Expect(GetByteOrder(protocol.Version39)).To(Equal(BigEndian))
})
})