mirror of https://github.com/vacp2p/nim-quic.git
Add PacketHeader
This commit is contained in:
parent
cdebcf863f
commit
24cc943dfb
|
@ -0,0 +1,6 @@
|
|||
type
|
||||
PacketHeaderKind* = enum
|
||||
headerShort
|
||||
headerLong
|
||||
PacketHeader* = object
|
||||
kind*: PacketHeaderKind
|
|
@ -0,0 +1,6 @@
|
|||
import unittest
|
||||
import quic
|
||||
|
||||
test "there are two kinds of packet headers; short and long":
|
||||
discard PacketHeader(kind: headerShort)
|
||||
discard PacketHeader(kind: headerLong)
|
|
@ -1,4 +0,0 @@
|
|||
import unittest
|
||||
|
||||
test "check testing framework":
|
||||
check 1 == 1
|
|
@ -1,4 +1,4 @@
|
|||
import quic/testQuic
|
||||
import quic/testPackets
|
||||
import quic/testNgtcp2
|
||||
|
||||
{.warning[UnusedImport]:off.}
|
||||
|
|
Loading…
Reference in New Issue