uquic/internal/wire/wire_suite_test.go
2017-08-30 00:19:44 +07:00

25 lines
668 B
Go

package wire
import (
"github.com/lucas-clemente/quic-go/internal/protocol"
"github.com/lucas-clemente/quic-go/internal/utils"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"testing"
)
func TestCrypto(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Wire Suite")
}
const (
versionLittleEndian = protocol.Version37 // a QUIC version that uses little endian encoding
versionBigEndian = protocol.Version39 // a QUIC version that uses big endian encoding
)
var _ = BeforeSuite(func() {
Expect(utils.GetByteOrder(versionLittleEndian)).To(Equal(utils.LittleEndian))
Expect(utils.GetByteOrder(versionBigEndian)).To(Equal(utils.BigEndian))
})