mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-05 13:17:36 +03:00
update the packet numbers in decoding test to the ones from the draft
This commit is contained in:
parent
3376a9fa9f
commit
b57a1095c5
1 changed files with 2 additions and 2 deletions
|
@ -18,8 +18,8 @@ var _ = Describe("packet number calculation", func() {
|
||||||
})
|
})
|
||||||
|
|
||||||
It("works with the examples from the draft", func() {
|
It("works with the examples from the draft", func() {
|
||||||
Expect(GetPacketNumberLengthForHeader(0xac5c02, 0xabe8bc)).To(Equal(PacketNumberLen2))
|
Expect(GetPacketNumberLengthForHeader(0xac5c02, 0xabe8b3)).To(Equal(PacketNumberLen2))
|
||||||
Expect(GetPacketNumberLengthForHeader(0xace8fe, 0xabe8bc)).To(Equal(PacketNumberLen3))
|
Expect(GetPacketNumberLengthForHeader(0xace8fe, 0xabe8b3)).To(Equal(PacketNumberLen3))
|
||||||
})
|
})
|
||||||
|
|
||||||
getEpoch := func(len PacketNumberLen) uint64 {
|
getEpoch := func(len PacketNumberLen) uint64 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue